]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Make all warnings fatal under when testing
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 21 Oct 2013 20:49:16 +0000 (22:49 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 21 Oct 2013 20:52:31 +0000 (22:52 +0200)
novaboot
tests/wvtest.sh

index 4b9bceb0c3f74141a8e787a529f1ea9c49850923..e25ff2e9810576fd4591bf5226741abda9606d38 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -15,6 +15,7 @@
 
 use strict;
 use warnings;
+use warnings (exists $ENV{NOVABOOT_TEST} ? (FATAL => 'all') : ());
 use Getopt::Long qw(GetOptionsFromString);
 use Pod::Usage;
 use File::Basename;
index a2e40a70d119c744dcf41a11876a377557e2c648..f3fa327ae9fcf7989d41e422ec680385cd296ae5 100644 (file)
@@ -145,3 +145,4 @@ WVSTART()
 }
 
 WV_BASE_DIR="$PWD"
+export NOVABOOT_TEST=1