summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-11-07 17:34:13 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2017-11-13 17:18:48 +0100
commit9d5ad230a7558ae9adea42ea69d633d489c6dec0 (patch)
treed9ea3ac3b86e98e826c833bb60aff84bcaa9d927 /scripts
parent95e2f81a149142b67076a3132e1b00d9f64bd031 (diff)
downloadmeta-updater-9d5ad230a7558ae9adea42ea69d633d489c6dec0.tar.gz
Rough draft of a run-qemu-ota test.
Not very useful yet. Could be made into a function for the purpose of running arbitrary commands via SSH, for example. However, I had plenty of trouble even getting this far. Note that I created a softlink to qemucommand to get around the Python path issues in oe-selftest. I'm not sure if there's a better way to handle that, since manipulating the path is seemingly impossible.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qemucommand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py
index ed14d9b..a75ffb6 100644
--- a/scripts/qemucommand.py
+++ b/scripts/qemucommand.py
@@ -1,4 +1,4 @@
1from os.path import exists, join, realpath 1from os.path import exists, join, realpath, abspath
2from os import listdir 2from os import listdir
3import random 3import random
4import socket 4import socket
@@ -49,7 +49,7 @@ class QemuCommand(object):
49 if args.efi: 49 if args.efi:
50 self.bios = 'OVMF.fd' 50 self.bios = 'OVMF.fd'
51 else: 51 else:
52 uboot = join(args.dir, self.machine, 'u-boot-qemux86-64.rom') 52 uboot = abspath(join(args.dir, self.machine, 'u-boot-qemux86-64.rom'))
53 if not exists(uboot): 53 if not exists(uboot):
54 raise ValueError("U-Boot image %s does not exist" % uboot) 54 raise ValueError("U-Boot image %s does not exist" % uboot)
55 self.bios = uboot 55 self.bios = uboot