mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
validate: launcher: Fix the way we retrieve command name
We are now using a list of args for subprocess so just using it is simple now
This commit is contained in:
parent
bf21c2f64e
commit
fbde653a0c
1 changed files with 1 additions and 2 deletions
|
@ -236,8 +236,7 @@ class Test(Loggable):
|
||||||
# and wait here until gdb exits
|
# and wait here until gdb exits
|
||||||
self.process.communicate()
|
self.process.communicate()
|
||||||
else:
|
else:
|
||||||
pname = subprocess.check_output(("readlink -e /proc/%s/exe"
|
pname = self.command[0]
|
||||||
% self.process.pid)).decode().split(' ').replace('\n', '')
|
|
||||||
input("%sTimeout happened you can attach gdb doing: $gdb %s %d%s\n"
|
input("%sTimeout happened you can attach gdb doing: $gdb %s %d%s\n"
|
||||||
"Press enter to continue" % (Colors.FAIL, pname, self.process.pid,
|
"Press enter to continue" % (Colors.FAIL, pname, self.process.pid,
|
||||||
Colors.ENDC))
|
Colors.ENDC))
|
||||||
|
|
Loading…
Reference in a new issue