From 443cc5b2581afc8faf96b72e42a52cbd4b8c8002 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 17 Feb 2017 21:54:47 +0100 Subject: [PATCH] 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. --- tests/novaboot.wv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2