]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Print executed commands
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Oct 2015 12:38:14 +0000 (14:38 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Oct 2015 12:38:14 +0000 (14:38 +0200)
scripts/utils.py

index ac7f6a3b99747ffbf2dc67fb8036cd8d4f81435b..568867ec7e32d83bfcd8dcd7c849be7c62645914 100644 (file)
@@ -56,6 +56,7 @@ class __subprocess_timer__(Thread):
 def callsubprocess(process_name, process, show_output = True,
                return_output = False, env=os.environ, allowed_exit_codes = [0],
                allow_all_exit_codes = False, stdin = None, timeout = -1):
+       print("Running: " + " ".join(process))
        sprc = subprocess.Popen(process, stdout = subprocess.PIPE,
                        stderr = subprocess.STDOUT, stdin = subprocess.PIPE, env = env)