validate: launcher: Fix the way we retrieve command name
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 20 Feb 2017 15:52:06 +0000 (12:52 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 27 Feb 2017 15:12:38 +0000 (12:12 -0300)
We are now using a list of args for subprocess so just using it is simple now

validate/launcher/baseclasses.py

index 549f373..8871ab2 100644 (file)
@@ -236,8 +236,7 @@ class Test(Loggable):
                     # and wait here until gdb exits
                     self.process.communicate()
                 else:
-                    pname = subprocess.check_output(("readlink -e /proc/%s/exe"
-                                                    % self.process.pid)).decode().split(' ').replace('\n', '')
+                    pname = self.command[0]
                     input("%sTimeout happened you can attach gdb doing: $gdb %s %d%s\n"
                           "Press enter to continue" % (Colors.FAIL, pname, self.process.pid,
                                                        Colors.ENDC))