summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-11-15 15:50:32 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2017-11-15 15:50:32 +0100
commit9411b6039661f50832779d021f3d47b2d8516634 (patch)
tree736b239c9fb48e1ad144ce3041452d9cc1bbe1d5
parent714f33c1d057db2058aaeadb9dec123199edf41e (diff)
downloadmeta-updater-9411b6039661f50832779d021f3d47b2d8516634.tar.gz
Fix some paths based on Leon's techniques.
-rw-r--r--lib/oeqa/selftest/updater.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/updater.py
index 13e1c21..6339e6e 100644
--- a/lib/oeqa/selftest/updater.py
+++ b/lib/oeqa/selftest/updater.py
@@ -8,8 +8,6 @@ from oeqa.selftest.base import oeSelfTest
8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars 8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
9from oeqa.selftest.qemucommand import QemuCommand 9from oeqa.selftest.qemucommand import QemuCommand
10 10
11DEFAULT_DIR = 'tmp/deploy/images'
12
13 11
14class SotaToolsTests(oeSelfTest): 12class SotaToolsTests(oeSelfTest):
15 13
@@ -65,8 +63,9 @@ class GeneralTests(oeSelfTest):
65 63
66 def test_add_package(self): 64 def test_add_package(self):
67 print('') 65 print('')
68 machine = get_bb_var('MACHINE', 'core-image-minimal') 66 deploydir = get_bb_var('DEPLOY_DIR_IMAGE')
69 image_path = DEFAULT_DIR + '/' + machine + '/core-image-minimal-' + machine + '.otaimg' 67 imagename = get_bb_var('IMAGE_LINK_NAME', 'core-image-minimal')
68 image_path = deploydir + '/' + imagename + '.otaimg'
70 logger = logging.getLogger("selftest") 69 logger = logging.getLogger("selftest")
71 70
72 logger.info('Running bitbake with man in the image package list') 71 logger.info('Running bitbake with man in the image package list')
@@ -98,7 +97,9 @@ class GeneralTests(oeSelfTest):
98 args = type('', (), {})() 97 args = type('', (), {})()
99 args.imagename = 'core-image-minimal' 98 args.imagename = 'core-image-minimal'
100 args.mac = None 99 args.mac = None
101 args.dir = DEFAULT_DIR 100 # Could use DEPLOY_DIR_IMAGE her but it's already in the machine
101 # subdirectory.
102 args.dir = 'tmp/deploy/images'
102 args.efi = False 103 args.efi = False
103 args.machine = None 104 args.machine = None
104 args.no_kvm = False 105 args.no_kvm = False