From 3fd824e1e3c27b175fcbb74540117a35bae24f6c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 18 Sep 2015 15:20:48 +0000 Subject: Add debug. --- openstack/tester | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openstack/tester b/openstack/tester index 259309b..88e3322 100755 --- a/openstack/tester +++ b/openstack/tester @@ -86,9 +86,10 @@ class DeployedSystemInstance(object): def runcmd(self, argv, chdir='.', **kwargs): ssh_cmd = ['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', self.ssh_host] - cmd = ['sh', '-c', 'cd "$1" && shift && exec "$@"', '-', chdir] + cmd = ['sh', '-x', '-c', 'cd "$1" && shift && exec "$@"', '-', chdir] cmd += argv ssh_cmd.append(' '.join(map(pipes.quote, cmd))) + print ssh_cmd return cliapp.runcmd(ssh_cmd, **kwargs) def _wait_for_dhcp(self, timeout): @@ -275,7 +276,7 @@ class ReleaseApp(cliapp.Application): print('Running test: ' + data['name']) for cmd in data['commands']: print('$ ' + cmd) - instance.runcmd(['sh', '-c', cmd], stdout=self.output) + instance.runcmd(['sh', '-x', '-c', cmd], stdout=self.output) def deploy_and_test_systems(self, tests): """Run the deployments and tests""" -- cgit v1.2.1