summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-11-11 09:50:14 (GMT)
committerMartin Pitt <martin.pitt@ubuntu.com>2016-11-11 09:50:14 (GMT)
commit3bee40471e5171a48cdb936cccc86dfd23a1e532 (patch)
treea5280b2d108cc439c363965fbed7dd1a89ccd0a1
parent695f811cda8536429293ca2ed9250e61f410d774 (diff)
Fix trailing '\' in test command with ssh runner
Avoid ending the constructed test shell command with a space. virt-ssh's printf "%q" turns that into a trailing "\ " which ssh reduces to "\" which bash 4.4 trips over (earlier versions were fine).
-rw-r--r--lib/adt_testbed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/adt_testbed.py b/lib/adt_testbed.py
index 781ef90..6ed0834 100644
--- a/lib/adt_testbed.py
+++ b/lib/adt_testbed.py
@@ -996,7 +996,7 @@ fi
test_cmd = "bash -ec '%s'" % test.command
script += 'touch %(o)s %(e)s; ' \
- '%(t)s 2> >(tee -a %(e)s >&2) > >(tee -a %(o)s); ' \
+ '%(t)s 2> >(tee -a %(e)s >&2) > >(tee -a %(o)s);' \
% {'t': test_cmd, 'o': so.tb, 'e': se.tb}
if 'needs-root' not in test.restrictions and self.user is not None: