Skip to content
Snippets Groups Projects
Commit d08724bd authored by Andy Yates's avatar Andy Yates
Browse files

switch to using the local as default. otherwise we cannot have a test passing...

switch to using the local as default. otherwise we cannot have a test passing until we have committed to version control
parent b64dbd66
No related branches found
No related tags found
No related merge requests found
# We respond to the following ENV
# ENS_LOCAL_SCHEMA - If set to true we will use the local schema as the reference schema. Otherwise we use the previous version's schema from source control
# ENS_REMOTE_SCHEMA - If set to true we will use the remote schema as the reference schema. Otherwise we use the local schema held in sql/table.sql
use strict;
use warnings;
......@@ -63,7 +63,10 @@ SKIP: {
# Create last release DB
my $current_table_sql;
if ($ENV{ENS_LOCAL_SCHEMA}) {
if ($ENV{ENS_REMOTE_SCHEMA}) {
$current_table_sql = get_table_sql($current_release);
}
else {
my $table_sql = catfile($sql_dir, 'table.sql');
skip 'Skipping DB patch test as we cannot find last release schema file (table.sql)', 1
unless -e $table_sql;
......@@ -71,9 +74,6 @@ SKIP: {
unless -r $table_sql;
$current_table_sql = slurp($table_sql);
}
else {
$current_table_sql = get_table_sql($current_release);
}
skip "Skipping DB patch tests as we cannot find the SQL for release $current_release", (scalar(@patches)+1)
unless defined $current_table_sql;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment