forked from qt-creator/qt-creator
Squish: Do not use shell in getOutputFromCmdline
Change-Id: I731b119169063912cd3b528a1a6a58727002ae67 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -118,7 +118,7 @@ def waitForCleanShutdown(timeOut=10):
|
||||
if not shutdownDone and datetime.utcnow() > endtime:
|
||||
break
|
||||
if platform.system() == 'Linux' and JIRA.isBugStillOpen(15749):
|
||||
pgrepOutput = getOutputFromCmdline('pgrep -f qtcreator_process_stub')
|
||||
pgrepOutput = getOutputFromCmdline(["pgrep", "-f", "qtcreator_process_stub"])
|
||||
pids = pgrepOutput.splitlines()
|
||||
if len(pids):
|
||||
print("Killing %d qtcreator_process_stub instances" % len(pids))
|
||||
|
||||
Reference in New Issue
Block a user