summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases/testutils.py
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-07-08 11:28:34 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2019-07-15 15:28:26 +0200
commiteeaa391f3043bcf5cf3bd7645792fa6d01ee43c8 (patch)
treebbd1916152115c05aa07a6d424a57270dd603d1c /lib/oeqa/selftest/cases/testutils.py
parent69d8dc6ed1405a6a05faca12f482e79cb6e0471b (diff)
downloadmeta-updater-eeaa391f3043bcf5cf3bd7645792fa6d01ee43c8.tar.gz
Factor out ugly function in oe-selftests
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
-rw-r--r--lib/oeqa/selftest/cases/testutils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py
index 900d15c..e67f30c 100644
--- a/lib/oeqa/selftest/cases/testutils.py
+++ b/lib/oeqa/selftest/cases/testutils.py
@@ -69,6 +69,16 @@ def qemu_send_command(port, command, timeout=60):
69 return stdout, stderr, s2.returncode 69 return stdout, stderr, s2.returncode
70 70
71 71
72def metadir():
73 # Assume the directory layout for finding other layers. We could also
74 # make assumptions by using 'show-layers', but either way, if the
75 # layers we need aren't where we expect them, we are out of luck.
76 path = os.path.abspath(os.path.dirname(__file__))
77 metadir = path + "/../../../../../"
78
79 return metadir
80
81
72def akt_native_run(testInst, cmd, **kwargs): 82def akt_native_run(testInst, cmd, **kwargs):
73 # run a command supplied by aktualizr-native and checks that: 83 # run a command supplied by aktualizr-native and checks that:
74 # - the executable exists 84 # - the executable exists