PATCH: Correct handling of DejaGNU UNTESTED results

Mark Mitchell mark at codesourcery.com
Wed Dec 13 05:25:12 UTC 2006


This patch corrects the handling of DejaGNU UNTESTED results when
generating expectations.  In particular, the expected QMTEST result is
now UNTESTED -- rather than PASS.

Committed.
 
--
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713

2006-12-12  Mark Mitchell  <mark at codesourcery.com>

	* qm/test/classes/dejagnu_stream.py
	(DejaGNUReader.__UpdateResult): Treat DejaGNU UNTESTED results as
	QMTEST UNTESTED results when generating outcomes from a DejaGNU log
	file.

Index: qm/test/classes/dejagnu_stream.py
===================================================================
--- qm/test/classes/dejagnu_stream.py	(revision 1001)
+++ qm/test/classes/dejagnu_stream.py	(working copy)
@@ -329,7 +329,8 @@ class DejaGNUReader(FileResultReader):
                                    DejaGNUTest.XFAIL,
                                    DejaGNUTest.XPASS):
                 qmtest_outcome = Result.FAIL
-            elif dejagnu_outcome == DejaGNUTest.UNSUPPORTED:
+            elif dejagnu_outcome in (DejaGNUTest.UNSUPPORTED,
+                                     DejaGNUTest.UNRESOLVED):
                 qmtest_outcome = Result.UNTESTED
             else:
                 qmtest_outcome = Result.PASS



More information about the qmtest mailing list