summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/mv_common.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-07-04 23:03:21 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-07-04 23:03:21 (GMT)
commit19e8f207678d02f9a912aa0728b90a4c63d82c82 (patch)
treeb9b580ad4dbe20e884f217bf509103862e851cde /abs/core-testing/LinHES-config/mv_common.py
parenta77d9915f36ed35bce7e3ba19acd07d0078359db (diff)
downloadlinhes_pkgbuild-19e8f207678d02f9a912aa0728b90a4c63d82c82.zip
linhes_pkgbuild-19e8f207678d02f9a912aa0728b90a4c63d82c82.tar.gz
linhes_pkgbuild-19e8f207678d02f9a912aa0728b90a4c63d82c82.tar.bz2
linhes-config: add function runcmd_output
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_common.py')
-rwxr-xr-xabs/core-testing/LinHES-config/mv_common.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-config/mv_common.py b/abs/core-testing/LinHES-config/mv_common.py
index da3e25f..f18e02b 100755
--- a/abs/core-testing/LinHES-config/mv_common.py
+++ b/abs/core-testing/LinHES-config/mv_common.py
@@ -14,6 +14,16 @@ def runcmd(cmd):
logging.debug(" %s",cmdout)
return cmdout[0]
+def runcmd_output(cmd):
+ if data_config.NOOPDEBUG=="FALSE":
+ pass
+ else:
+ cmd = "echo "+cmd
+ logging.debug(" %s",cmd)
+ cmdout = commands.getstatusoutput(cmd)
+ logging.debug(" %s",cmdout)
+ return cmdout[1]
+
def services(systemconfig):
logging.debug("______Start of services______")
logging.debug("__End services")