diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-01-19 19:31:46 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-01-19 19:31:46 +0000 |
commit | f249090d7bb831b64ac46b43667dca28e67efeaf (patch) | |
tree | ea8223bd4a393852b4d19ebc694c2c26b5dc329c | |
parent | 5c901f3489e0f9ddbbaa169c598a0152fa2d61ed (diff) | |
download | bcm5719-llvm-f249090d7bb831b64ac46b43667dca28e67efeaf.tar.gz bcm5719-llvm-f249090d7bb831b64ac46b43667dca28e67efeaf.zip |
Print out the command line used to invoke the test suite so I don't get confused
since different options can affect the run time.
llvm-svn: 123843
-rwxr-xr-x | lldb/test/dotest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 578850c6edd..14c0017b231 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -607,6 +607,12 @@ def lldbLoggings(): if not res.Succeeded(): raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.') +def getMyCommandLine(): + import subprocess + ps = subprocess.Popen(['ps', '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0] + lines = ps.split('\n') + cmd_line = lines[1] + return cmd_line # ======================================== # # # @@ -679,7 +685,9 @@ if not sdir_name: timestamp = datetime.datetime.now().strftime("%Y-%m-%d-%H_%M_%S") sdir_name = timestamp os.environ["LLDB_SESSION_DIRNAME"] = sdir_name + sys.stderr.write("\nSession logs for test failures/errors will go into directory '%s'\n" % sdir_name) +sys.stderr.write("Command invoked: %s\n" % getMyCommandLine()) # # Invoke the default TextTestRunner to run the test suite, possibly iterating |