Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7497 from Remmeauth/eos-develop_unit_tests_loggin…
Browse files Browse the repository at this point in the history
…g_improvement

properly add single quotes for parameter with spaces in logs output
  • Loading branch information
heifner authored Jun 27, 2019
2 parents c14e51a + 2f7223e commit c26cb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def connectGroup(group, producerNodes, bridgeNodes) :

Cluster.__LauncherCmdArr = cmdArr.copy()

s=" ".join(cmdArr)
s=" ".join([("'{0}'".format(element) if (' ' in element) else element) for element in cmdArr.copy()])
if Utils.Debug: Utils.Print("cmd: %s" % (s))
if 0 != subprocess.call(cmdArr):
Utils.Print("ERROR: Launcher failed to launch. failed cmd: %s" % (s))
Expand Down

0 comments on commit c26cb0e

Please sign in to comment.