summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-12-19 15:45:02 +0000
committerIan Lynagh <igloo@earth.li>2009-12-19 15:45:02 +0000
commite7841b8597a22cb0649b011463a92dba44ec6ecd (patch)
tree1574fc8315618cc563e800f0b10602a03131901f /testsuite/driver/testglobals.py
parent5a0356538a71656c5fc86e12f954a7c12d924f11 (diff)
downloadhaskell-e7841b8597a22cb0649b011463a92dba44ec6ecd.tar.gz
Add pre-command support to the testsuite, and fix annrun01 by using it
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index 79fc136aba..0644bd3671 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -202,6 +202,9 @@ class TestOptions:
# Does this test use a .c file?
self.c_src = 0
+ # Command to run before the test
+ self.pre_cmd = None
+
# Prefix to put on the command before running it
self.cmd_prefix = ''