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:
Thibault Saunier 2017-02-20 12:52:06 -03:00
parent bf21c2f64e
commit fbde653a0c

View file

@ -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))