[Synopsis-changes] Synopsis/Synopsis/tests/qmtest/classes synopsis_test.py,1.1,1.2
Stefan Seefeld stefan at synopsis.fresco.orgWed Dec 3 05:43:58 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/doc/Tutorial Makefile,1.10,1.11
- Next message: [Synopsis-changes] Synopsis/Synopsis/doc/Tutorial fo.xsl,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/tests/qmtest/classes
In directory frida:/tmp/cvs-serv24402/qmtest/classes
Modified Files:
synopsis_test.py
Log Message:
check return value of executed command
Index: synopsis_test.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/tests/qmtest/classes/synopsis_test.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -d -r1.1 -r1.2
--- synopsis_test.py 29 Nov 2003 22:57:06 -0000 1.1
+++ synopsis_test.py 3 Dec 2003 05:43:55 -0000 1.2
@@ -37,12 +37,14 @@ class ProcessorTest(Test):
string.join(self.input, ' '))
script = RedirectedExecutable(60) # 1 minute ought to be enough...
status = script.Run(string.split(command))
- return self.output
+ if status != 0:
+ result.Fail("unable to run '%s'"%command)
+ return status == 0
def Run(self, context, result):
- self.run_processor(context, result)
- expected = open(self.expected).readlines()
- output = open(self.output).readlines()
- if expected != output:
- result.Fail("output mismatch")
+ if self.run_processor(context, result):
+ expected = open(self.expected).readlines()
+ output = open(self.output).readlines()
+ if expected != output:
+ result.Fail("output mismatch")
- Previous message: [Synopsis-changes] Synopsis/Synopsis/doc/Tutorial Makefile,1.10,1.11
- Next message: [Synopsis-changes] Synopsis/Synopsis/doc/Tutorial fo.xsl,NONE,1.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list