summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index c33741d804..d44afc7e7a 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -676,7 +676,10 @@ class BaseConfig(object):
676 else: 676 else:
677 cmd = 'ls -t %s/*.qemuboot.conf' % deploy_dir_image 677 cmd = 'ls -t %s/*.qemuboot.conf' % deploy_dir_image
678 logger.info('Running %s...' % cmd) 678 logger.info('Running %s...' % cmd)
679 qbs = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8') 679 try:
680 qbs = subprocess.check_output(cmd, shell=True).decode('utf-8')
681 except subprocess.CalledProcessError as err:
682 raise RunQemuError(err)
680 if qbs: 683 if qbs:
681 for qb in qbs.split(): 684 for qb in qbs.split():
682 # Don't use initramfs when other choices unless fstype is ramfs 685 # Don't use initramfs when other choices unless fstype is ramfs