test: drop useless "set -x"

This no longer works when running tests in Docker containers because
the wrapper script for starting there only accepts a simple command,
not something that must be interpreted by a shell.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
This commit is contained in:
Patrick Ohly 2020-12-22 11:43:51 -08:00
parent 90c3ca329d
commit 2bc0535881
1 changed files with 3 additions and 2 deletions

View File

@ -395,8 +395,9 @@ class Context:
if not runAsIs:
cmdstr = " ".join([(' ' in x or '(' in x or '\\' in x or x == '') and ("'" in x and '"%s"' or "'%s'") % x or x for x in cmd])
if dumpCommands:
cmdstr = "set -x; " + cmdstr
# if dumpCommands:
# Doesn't work, we need a single command.
# cmdstr = "set -x; " + cmdstr
cwd = os.getcwd()
# Most commands involving schroot need to run with paths as seen inside the chroot.