Tweak the brokens list to include the directory the test is in
authorIan Lynagh <ian@well-typed.com>
Mon, 11 Feb 2013 17:36:40 +0000 (17:36 +0000)
committerIan Lynagh <ian@well-typed.com>
Mon, 11 Feb 2013 17:36:40 +0000 (17:36 +0000)
testsuite/driver/runtests.py
testsuite/driver/testglobals.py
testsuite/driver/testlib.py

index e1d6f7c..1b8ddb1 100644 (file)
@@ -258,7 +258,7 @@ if config.list_broken:
     global brokens
     print ''
     print 'Broken tests:'
-    print (' '.join(map (lambda (b, n) : '#' + str(b) + '(' + n + ')', brokens)))
+    print (' '.join(map (lambda (b, d, n) : '#' + str(b) + '(' + d + '/' + n + ')', brokens)))
     print ''
 
     if t.n_framework_failures != 0:
index b7b6007..a959557 100644 (file)
@@ -265,7 +265,7 @@ class TestOptions:
 global default_testopts
 default_testopts = TestOptions()
 
-# (bug, name) of tests marked broken
+# (bug, directory, name) of tests marked broken
 global brokens
 brokens = []
 
index 8a627f4..56e1b46 100644 (file)
@@ -151,19 +151,19 @@ def expect_broken( bug ):
     return lambda name, opts, b=bug: _expect_broken (name, opts, b )
 
 def _expect_broken( name, opts, bug ):
-    record_broken(name, bug)
+    record_broken(name, opts, bug)
     opts.expect = 'fail';
 
 def expect_broken_for( bug, ways ):
     return lambda name, opts, b=bug, w=ways: _expect_broken_for( name, opts, b, w )
 
 def _expect_broken_for( name, opts, bug, ways ):
-    record_broken(name, bug)
+    record_broken(name, opts, bug)
     opts.expect_fail_for = ways
 
-def record_broken(name, bug):
+def record_broken(name, opts, bug):
     global brokens
-    me = (bug, name)
+    me = (bug, opts.testdir, name)
     if not me in brokens:
         brokens.append(me)