t/random_seed: call parent class check_result()
authorVincent Fu <vincent.fu@samsung.com>
Fri, 29 Dec 2023 03:10:43 +0000 (22:10 -0500)
committerVincent Fu <vincent.fu@samsung.com>
Fri, 29 Dec 2023 03:14:43 +0000 (22:14 -0500)
Make sure we call the parent class' check_result() method to check the
return code, stderr output, etc.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/random_seed.py

index 02187046e57a711608914fcf928c3992bee3d494..82beca65b50a8bf6044f933c0cef207bf6063768 100755 (executable)
@@ -91,6 +91,10 @@ class TestRR(FioRandTest):
     def check_result(self):
         """Check output for allrandrepeat=1."""
 
+        super().check_result()
+        if not self.passed:
+            return
+
         opt = 'randrepeat' if 'randrepeat' in self.fio_opts else 'allrandrepeat'
         rr = self.fio_opts[opt]
         rand_seeds = self.get_rand_seeds()
@@ -131,6 +135,10 @@ class TestRS(FioRandTest):
     def check_result(self):
         """Check output for randseed=something."""
 
+        super().check_result()
+        if not self.passed:
+            return
+
         rand_seeds = self.get_rand_seeds()
         randseed = self.fio_opts['randseed']