git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88a3133
)
adding TestScripts class
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 13 May 2008 01:01:45 +0000
(
01:01
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 13 May 2008 01:01:45 +0000
(
01:01
+0000)
qaapi/qa/TestScripts.py
[new file with mode: 0644]
patch
|
blob
diff --git a/qaapi/qa/TestScripts.py
b/qaapi/qa/TestScripts.py
new file mode 100644
(file)
index 0000000..
57b767f
--- /dev/null
+++ b/
qaapi/qa/TestScripts.py
@@ -0,0
+1,21
@@
+import utils
+from Table import Table
+
+class TestScript(dict):
+
+ fields = {
+ 'name': None,
+ 'pre': None,
+ 'args': None,
+ 'post': None
+ }
+
+ def __init__(self, fields = {}):
+ dict.__init__(self, self.fields)
+ self.update(fields)
+
+class TestScripts(Table):
+ def __init__(self, scripts):
+ scriptlist = [Script(script) for script in scripts]
+ Table.__init__(self, scriptlist)
+