diff options
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
-rw-r--r-- | lib/oeqa/selftest/cases/testutils.py | 10 |
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 | ||
72 | def 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 | |||
72 | def akt_native_run(testInst, cmd, **kwargs): | 82 | def 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 |