Remove -n in echo. It can make test fail on some environments if builtin echo is used.

parent f245a19d
...@@ -897,7 +897,7 @@ exit 0""" % {'worked_file': worked_file}) ...@@ -897,7 +897,7 @@ exit 0""" % {'worked_file': worked_file})
with open(succeed, 'w') as f: with open(succeed, 'w') as f:
f.write("""#!/usr/bin/env sh f.write("""#!/usr/bin/env sh
touch "%(worked_file)s" touch "%(worked_file)s"
echo -n Error 1>&2 echo Error 1>&2
exit 127""" % {'worked_file': worked_file}) exit 127""" % {'worked_file': worked_file})
os.chmod(succeed, 0777) os.chmod(succeed, 0777)
self.assertFalse(self.grid.processComputerPartitionList()) self.assertFalse(self.grid.processComputerPartitionList())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment