From: Michal Sojka Date: Fri, 17 Feb 2017 20:54:47 +0000 (+0100) Subject: Fix test X-Git-Tag: 20170423~3 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/443cc5b2581afc8faf96b72e42a52cbd4b8c8002 Fix test It seems that at least Perl 5.24.1, if the parameter of 'do' (which we use to read the configuration file) is relative patch that does not start with ./, the file is only searched in Perl @INC path. This results in test failure, because our configuration file in not in @INC. --- diff --git a/tests/novaboot.wv b/tests/novaboot.wv index 362afaa..a23b2c5 100755 --- a/tests/novaboot.wv +++ b/tests/novaboot.wv @@ -59,7 +59,7 @@ echo '$test_a = 1;' > dir/a echo '$test_c = 2;' > dir/c echo '$test_c = 1;' > dir/b # Overriden by the 'c' file echo '$test_ign=1;' > dir/b.txt # Ignored -WVPASS sh -c 'NOVABOOT_CONFIG_DIR=dir novaboot --dump-config > config' +WVPASS sh -c 'NOVABOOT_CONFIG_DIR=./dir novaboot --dump-config > config' WVPASS sh -c 'grep \$test config > test' WVPASS diff -u - test <<'EOF' $test_a = 1;