X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Futils.py;h=fbdd3f64ab1468bcec6f2933d6dbc766faa04b1b;hb=b9e119571675a2eda425baf89798ce6261fb48d2;hp=073c55151700954c1872cb5d8c2587cd2484db28;hpb=a1feda295b8f81883eca3a04adb8295ef54c7704;p=tests.git diff --git a/system/utils.py b/system/utils.py index 073c551..fbdd3f6 100644 --- a/system/utils.py +++ b/system/utils.py @@ -39,7 +39,9 @@ def system(command,background=False,silent=False): # don't show in summary print "->",now,'--', sys.stdout.flush() - return os.system("set -x; " + command) + if not silent: + command = "set -x; " + command + return os.system(command) ### WARNING : this ALWAYS does its job, even in dry_run mode def output_of (command):