mirror of https://github.com/Icinga/icinga2.git
parent
9d87ce571b
commit
518d0bfd10
|
@ -4,8 +4,8 @@
|
||||||
"exec": "ssh -F ssh_config default {0}",
|
"exec": "ssh -F ssh_config default {0}",
|
||||||
"clean": "ssh -F ssh_config default rm -f {0}"
|
"clean": "ssh -F ssh_config default rm -f {0}"
|
||||||
},
|
},
|
||||||
"tests": {
|
"settings": {
|
||||||
"destination": "/tmp"
|
"test_root": "/tmp"
|
||||||
},
|
},
|
||||||
"setups": {
|
"setups": {
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,12 +89,12 @@ class TestSuite(object):
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
def _copy_test(self, path):
|
def _copy_test(self, path):
|
||||||
self._copy_file(path, os.path.join(self._config['tests']['destination'],
|
self._copy_file(path, os.path.join(self._config['settings']['test_root'],
|
||||||
os.path.basename(path)))
|
os.path.basename(path)))
|
||||||
|
|
||||||
def _run_test(self, path):
|
def _run_test(self, path):
|
||||||
command = self._config['commands']['exec']
|
command = self._config['commands']['exec']
|
||||||
target = os.path.join(self._config['tests']['destination'],
|
target = os.path.join(self._config['settings']['test_root'],
|
||||||
os.path.basename(path))
|
os.path.basename(path))
|
||||||
p = subprocess.Popen(command.format(target), stdout=subprocess.PIPE,
|
p = subprocess.Popen(command.format(target), stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE, shell=True)
|
stderr=subprocess.PIPE, shell=True)
|
||||||
|
|
Loading…
Reference in New Issue