git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetic
[tests.git]
/
system
/
utils.py
diff --git
a/system/utils.py
b/system/utils.py
index
cc03318
..
073c551
100644
(file)
--- a/
system/utils.py
+++ b/
system/utils.py
@@
-44,15
+44,10
@@
def system(command,background=False,silent=False):
### WARNING : this ALWAYS does its job, even in dry_run mode
def output_of (command):
import commands
### WARNING : this ALWAYS does its job, even in dry_run mode
def output_of (command):
import commands
-# if options.dry_run:
-# print 'dry_run',command
-# return (0,'[[dry-run - fake output]]')
-# else:
(code,string) = commands.getstatusoutput(command)
return (code,string)
(code,string) = commands.getstatusoutput(command)
return (code,string)
-
# convenience: translating shell-like pattern into regexp
def match (string, pattern):
# tmp - there's probably much simpler
# convenience: translating shell-like pattern into regexp
def match (string, pattern):
# tmp - there's probably much simpler