Commit 3c0fd25b authored by Julien Muchembled's avatar Julien Muchembled

erp5.util: fix a bug preventing the test suite to start with recent slapos

Commit a01da084 failed to fix the
handling of parameters in the dealShebang function and the bug is now
triggered since slapos@f834a06f:

$ PATH=...  SLAPOS_TEST_LOG_DIRECTORY=... SLAPOS_TEST_SHARED_PART_LIST=... /bin/sh '-e
' /srv/slapgrid/slappart0/t/.../i/0/bin/runTestSuite ...
runTestSuite: /bin/sh: 0: Illegal option -
parent d3195baf
Pipeline #39836 failed with stage
in 0 seconds
......@@ -38,7 +38,7 @@ from slapos.grid.utils import md5digest
def dealShebang(run_test_suite_path):
with open(run_test_suite_path) as f:
if f.read(2) == '#!':
return f.readline().split(None, 1)
return f.readline().rstrip().split(None, 1)
return []
class UnitTestRunner(object):
......
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