Explicitly raising error.AutotestError when fsck finds file system
inconsistencies. This will force the Autotest run to terminate,
resulting a failed test run.

Signed-off-by: Akshay Lal <[email protected]>

--- autotest/client/bin/base_partition.py       2010-04-20 12:31:13.000000000 
-0700
+++ autotest/client/bin/base_partition.py       2010-04-20 12:31:13.000000000 
-0700
@@ -631,7 +631,8 @@
         except:
             if record:
                 self.job.record('FAIL', None, fsck_cmd, error.format_error())
-            raise
+            raise error.TestError('Fsck found errors with the underlying '
+                                  'file system')
         else:
             if record:
                 self.job.record('GOOD', None, fsck_cmd)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to