diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/qemuimage-testlib-pythonhelper | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/qemuimage-testlib-pythonhelper b/scripts/qemuimage-testlib-pythonhelper index bb01246c77..4e6432b0fe 100755 --- a/scripts/qemuimage-testlib-pythonhelper +++ b/scripts/qemuimage-testlib-pythonhelper | |||
@@ -3,6 +3,7 @@ | |||
3 | import optparse | 3 | import optparse |
4 | import subprocess | 4 | import subprocess |
5 | import sys | 5 | import sys |
6 | import os | ||
6 | 7 | ||
7 | parser = optparse.OptionParser( | 8 | parser = optparse.OptionParser( |
8 | usage = """ | 9 | usage = """ |
@@ -52,7 +53,10 @@ if options.findqemu: | |||
52 | newparents = next | 53 | newparents = next |
53 | #print "Children matching %s:" % str(parents) | 54 | #print "Children matching %s:" % str(parents) |
54 | for p in parents: | 55 | for p in parents: |
55 | if "qemu-system" in commands[p]: | 56 | # Need to be careful here since runqemu-internal runs "ldd qemu-system-xxxx" |
57 | basecmd = commands[p].split()[0] | ||
58 | basecmd = os.path.basename(basecmd) | ||
59 | if "qemu-system" in basecmd: | ||
56 | print p | 60 | print p |
57 | sys.exit(0) | 61 | sys.exit(0) |
58 | sys.exit(1) | 62 | sys.exit(1) |