Commit 42715d58 authored by Harald Sitter's avatar Harald Sitter 🎶

check_var does not do what you'd think it does :O

it's more like eq iffing best be done via if(get_var
parent c8b7a5a5
......@@ -33,17 +33,15 @@ my $dist = testapi::get_var("CASEDIR") . '/lib/';
require $dist;
sub load_tests_to_run {
if (testapi::get_var("INSTALLATION")) {
autotest::loadtest "tests/";
} elsif (testapi::get_var("TESTS_TO_RUN")) {
for my $testpath (testapi::get_var("TESTS_TO_RUN")) {
testapi::diag "loading $testpath"
autotest::loadtest $testpath;
if (testapi::check_var("INSTALLATION")) {
autotest::loadtest "tests/";
} else {
testapi::diag 'ERROR FAILURE BAD ERROR no clue what to run!';
exit 1;
Markdown is supported
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