diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 1896944250..397895c936 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
| @@ -10,6 +10,7 @@ import shutil | |||
| 10 | import tempfile | 10 | import tempfile |
| 11 | import glob | 11 | import glob |
| 12 | import fnmatch | 12 | import fnmatch |
| 13 | import unittest | ||
| 13 | 14 | ||
| 14 | from oeqa.selftest.case import OESelftestTestCase | 15 | from oeqa.selftest.case import OESelftestTestCase |
| 15 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, create_temp_layer | 16 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, create_temp_layer |
| @@ -40,6 +41,13 @@ def setUpModule(): | |||
| 40 | canonical_layerpath = os.path.realpath(canonical_layerpath) + '/' | 41 | canonical_layerpath = os.path.realpath(canonical_layerpath) + '/' |
| 41 | edited_layers.append(layerpath) | 42 | edited_layers.append(layerpath) |
| 42 | oldmetapath = os.path.realpath(layerpath) | 43 | oldmetapath = os.path.realpath(layerpath) |
| 44 | |||
| 45 | # when downloading poky from tar.gz some tests will be skipped (BUG 12389) | ||
| 46 | try: | ||
| 47 | runCmd('git rev-parse --is-inside-work-tree', cwd=canonical_layerpath) | ||
| 48 | except: | ||
| 49 | raise unittest.SkipTest("devtool tests require folder to be a git repo") | ||
| 50 | |||
| 43 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) | 51 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) |
| 44 | oldreporoot = result.output.rstrip() | 52 | oldreporoot = result.output.rstrip() |
| 45 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) | 53 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) |
