diff options
| author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-07-08 11:28:34 +0200 |
|---|---|---|
| committer | Laurent Bonnans <laurent.bonnans@here.com> | 2019-07-15 15:28:26 +0200 |
| commit | eeaa391f3043bcf5cf3bd7645792fa6d01ee43c8 (patch) | |
| tree | bbd1916152115c05aa07a6d424a57270dd603d1c /lib/oeqa/selftest/cases/testutils.py | |
| parent | 69d8dc6ed1405a6a05faca12f482e79cb6e0471b (diff) | |
| download | meta-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.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 |
