diff options
Diffstat (limited to 'scripts/lib/devtool/runqemu.py')
-rw-r--r-- | scripts/lib/devtool/runqemu.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/lib/devtool/runqemu.py b/scripts/lib/devtool/runqemu.py index daee7fbbe3..303abcae4f 100644 --- a/scripts/lib/devtool/runqemu.py +++ b/scripts/lib/devtool/runqemu.py | |||
@@ -30,9 +30,11 @@ def runqemu(args, config, basepath, workspace): | |||
30 | """Entry point for the devtool 'runqemu' subcommand""" | 30 | """Entry point for the devtool 'runqemu' subcommand""" |
31 | 31 | ||
32 | tinfoil = setup_tinfoil(config_only=True, basepath=basepath) | 32 | tinfoil = setup_tinfoil(config_only=True, basepath=basepath) |
33 | machine = tinfoil.config_data.getVar('MACHINE', True) | 33 | try: |
34 | bindir_native = tinfoil.config_data.getVar('STAGING_BINDIR_NATIVE', True) | 34 | machine = tinfoil.config_data.getVar('MACHINE', True) |
35 | tinfoil.shutdown() | 35 | bindir_native = tinfoil.config_data.getVar('STAGING_BINDIR_NATIVE', True) |
36 | finally: | ||
37 | tinfoil.shutdown() | ||
36 | 38 | ||
37 | if not glob.glob(os.path.join(bindir_native, 'qemu-system-*')): | 39 | if not glob.glob(os.path.join(bindir_native, 'qemu-system-*')): |
38 | raise DevtoolError('QEMU is not available within this SDK') | 40 | raise DevtoolError('QEMU is not available within this SDK') |