Skip to content

Commit fce0941

Browse files
committed
run-test-suite.py: Make it easier to write back "gold" results to disk
1 parent ce37b42 commit fce0941

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run-test-suite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757

5858
from testcpychecker import get_gcc_version
5959

60+
WRITEBACK=0
61+
6062
PLUGIN_NAME = os.environ.get('PLUGIN_NAME', 'python')
6163

6264
class CompilationError(CommandError):
@@ -385,8 +387,8 @@ def uses_python_headers():
385387
if exitcode_expected == 0:
386388
assert os.path.exists(outfile)
387389

388-
out.check_for_diff(out.actual, err.actual, p, args, 'stdout', 0)
389-
err.check_for_diff(out.actual, err.actual, p, args, 'stderr', 0)
390+
out.check_for_diff(out.actual, err.actual, p, args, 'stdout', WRITEBACK)
391+
err.check_for_diff(out.actual, err.actual, p, args, 'stderr', WRITEBACK)
390392

391393

392394
from optparse import OptionParser

0 commit comments

Comments
 (0)