]> git.cworth.org Git - apitrace-tests/commitdiff
Print commands to be executed by cli_driver.py
authorCarl Worth <cworth@cworth.org>
Sat, 11 Aug 2012 18:28:59 +0000 (11:28 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 1 Dec 2012 10:15:48 +0000 (10:15 +0000)
These aren't made visible unless CTEST_OUTPUT_ON_FAILURE in set, and
in that case it's quite convenient to see what the test was doing when
it failed.

cli_driver.py

index 53bd100a50dc362809e64f30b7ae0efffdac4b1d..d4d277d33e822f7e8f4ff9dc75f25c92eec335e4 100644 (file)
@@ -33,6 +33,7 @@ class CliDriver(Driver):
     def do_apitrace(self, args):
         cmd = [self.options.apitrace] + args[1:]
  
     def do_apitrace(self, args):
         cmd = [self.options.apitrace] + args[1:]
  
+        print " ".join(cmd)
         proc = subprocess.Popen(cmd, stdout = subprocess.PIPE)
         self.output = proc.communicate()[0]
 
         proc = subprocess.Popen(cmd, stdout = subprocess.PIPE)
         self.output = proc.communicate()[0]