git » libjio » commit 25424aa

tests/auto: Don't keep running when libfiu is not available

author Alberto Bertogli
2009-03-27 00:57:03 UTC
committer Alberto Bertogli
2009-03-27 01:01:28 UTC
parent ee10f2610c4a51c37ca00d31fd6e11a08351d4f1

tests/auto: Don't keep running when libfiu is not available

When libfiu is not available, re-raise the exception after printing the
message. While at it, fix a small (related) documentation mismatch: FI=1
should be used to build with fault injection support, not FIU=1.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/auto/t_corruption.py +3 -2
tests/auto/t_fi.py +3 -2

diff --git a/tests/auto/t_corruption.py b/tests/auto/t_corruption.py
index c91a132..35a1998 100644
--- a/tests/auto/t_corruption.py
+++ b/tests/auto/t_corruption.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # Corruption tests using libfiu. libjio must have been built with libfiu
-# enabled (using something like make FIU=1) for them to work.
+# enabled (using something like make FI=1) for them to work.
 
 from tf import *
 
@@ -11,8 +11,9 @@ except ImportError:
 	print
 	print "Error: unable to load fiu module. Corruption tests need"
 	print "libfiu support. Please install libfiu and recompile libjio"
-	print "with FIU=1. You can still run the other tests."
+	print "with FI=1. You can still run the other tests."
 	print
+	raise
 
 
 def test_c01():
diff --git a/tests/auto/t_fi.py b/tests/auto/t_fi.py
index e07e6f2..7490a08 100644
--- a/tests/auto/t_fi.py
+++ b/tests/auto/t_fi.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # General tests using libfiu. libjio must have been built with libfiu enabled
-# (using something like make FIU=1) for them to work.
+# (using something like make FI=1) for them to work.
 
 import struct
 from tf import *
@@ -13,8 +13,9 @@ except ImportError:
 	print
 	print "Error: unable to load fiu module. Fault injection tests need"
 	print "libfiu support. Please install libfiu and recompile libjio"
-	print "with FIU=1. You can still run the other tests."
+	print "with FI=1. You can still run the other tests."
 	print
+	raise
 
 
 def test_f01():