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

Skip now works.

parent 02edfcdf
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,9 @@ my $sql_file = catfile($sql_dir, 'table.sql');
my $result = ok(-f $sql_file, 'Checking SQL schema file exists');
if(! $result) {
skip 'Skipping DB creation tests as schema file cannot be found at '.$sql_file, 1;
}
else {
SKIP: {
skip 'Skipping DB creation tests as schema file cannot be found at '.$sql_file, 1 unless $result;
#Create DB & load schema
my $new_db_name = $db->create_db_name('temp');
note 'Creating database '.$new_db_name;
......@@ -40,4 +39,5 @@ else {
note 'Dropping database '.$new_db_name;
$dba->dbc()->do("drop database $new_db_name");
}
done_testing();
\ No newline at end of file
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