diff options
author | Brian Paul <brianp@vmware.com> | 2013-03-11 13:27:43 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-03-11 13:27:43 -0600 |
commit | 40e482e4a7e4907422f13248750ee0db2954f497 (patch) | |
tree | da8785d2add58944fe1b883174481df213394e36 | |
parent | 4684a2a49c55a0a7ae564a877453a602abb2b896 (diff) |
framework: document return value of ExecTest::run()
-rw-r--r-- | framework/exectest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/exectest.py b/framework/exectest.py index e96b5baa..b8d97b83 100644 --- a/framework/exectest.py +++ b/framework/exectest.py @@ -56,6 +56,15 @@ class ExecTest(Test): return out def run(self, valgrind): + """ + Run a test. The return value will be a dictionary with keys + including 'result', 'info', 'returncode' and 'command'. + * For 'result', the value may be one of 'pass', 'fail', 'skip', + 'crash', or 'warn'. + * For 'info', the value will include stderr/out text. + * For 'returncode', the value will be the numeric exit code/value. + * For 'command', the value will be command line program and arguments. + """ fullenv = os.environ.copy() for e in self.env: fullenv[e] = str(self.env[e]) |