From eeaa391f3043bcf5cf3bd7645792fa6d01ee43c8 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Mon, 8 Jul 2019 11:28:34 +0200 Subject: Factor out ugly function in oe-selftests Signed-off-by: Laurent Bonnans --- lib/oeqa/selftest/cases/testutils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/oeqa/selftest/cases/testutils.py') 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): return stdout, stderr, s2.returncode +def metadir(): + # Assume the directory layout for finding other layers. We could also + # make assumptions by using 'show-layers', but either way, if the + # layers we need aren't where we expect them, we are out of luck. + path = os.path.abspath(os.path.dirname(__file__)) + metadir = path + "/../../../../../" + + return metadir + + def akt_native_run(testInst, cmd, **kwargs): # run a command supplied by aktualizr-native and checks that: # - the executable exists -- cgit v1.2.3-54-g00ecf