예제 #1
0
 def check_output(self):
     cmdresult = self.sub_stuff['cmdresult']
     outputgood = output.OutputGood(cmdresult, ignore_error=True)
     self.failif(
         outputgood, "Unexpected good output - this command was "
         "supposed to fail: %s" % outputgood)
     self.failif(cmdresult.exit_status == 0,
                 "Unexpected exit status: got 0, expected error exit")
예제 #2
0
 def check_output(self):
     outputgood = output.OutputGood(self.sub_stuff['cmdresult'],
                                    ignore_error=True)
     zeroexit = self.sub_stuff['cmdresult'].exit_status == 0
     # This is SUPPOSE to fail, fail test if it succeeds!
     self.failif(
         outputgood or zeroexit,
         "Unexpected good output: %s or exit_status: %d" %
         (outputgood, self.sub_stuff['cmdresult'].exit_status))
예제 #3
0
 def check_output(self):
     outputgood = output.OutputGood(self.sub_stuff['cmdresult'],
                                    ignore_error=True)
     # This is SUPPOSE to fail, fail test if it succeeds!
     self.failif(outputgood, str(outputgood))
예제 #4
0
 def check_output(self):
     outputgood = output.OutputGood(self.sub_stuff['cmdresult'],
                                    ignore_error=True)
     self.failif(not outputgood, str(outputgood))