[oe-commits] [openembedded-core] 04/14: meta/classes/testexport: Use manfiest filenames for package and testdata
git at git.openembedded.org
git at git.openembedded.org
Thu Oct 18 10:06:18 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 8fc3169a7db12c3ff9cb63a437a630be2682a03d
Author: Aníbal Limón <anibal.limon at linaro.org>
AuthorDate: Wed Oct 17 18:00:43 2018 -0500
meta/classes/testexport: Use manfiest filenames for package and testdata
Is clear to know for what image and machine the testexport package
manifest and testdata was build.
Signed-off-by: Aníbal Limón <anibal.limon at linaro.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/testexport.bbclass | 4 ++--
meta/lib/oeqa/runtime/context.py | 9 +++++++--
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass
index d070f07..8b01504 100644
--- a/meta/classes/testexport.bbclass
+++ b/meta/classes/testexport.bbclass
@@ -128,8 +128,8 @@ def copy_needed_files(d, tc):
tdname = "%s.testdata.json" % image_name
test_data_path = os.path.join(export_path, 'data')
bb.utils.mkdirhier(test_data_path)
- shutil.copy2(image_manifest, os.path.join(test_data_path, 'manifest'))
- shutil.copy2(tdname, os.path.join(test_data_path, 'testdata.json'))
+ shutil.copy2(image_manifest, os.path.join(test_data_path, os.path.basename(image_manifest)))
+ shutil.copy2(tdname, os.path.join(test_data_path, os.path.basename(tdname)))
# Create tar file for common parts of testexport
create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index a7f3823..31dba75 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -2,6 +2,7 @@
# Released under the MIT license (see COPYING.MIT)
import os
+import glob
from oeqa.core.context import OETestContext, OETestContextExecutor
from oeqa.core.target.ssh import OESSHTarget
@@ -42,11 +43,15 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
default_cases = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'cases')
default_data = None
- default_test_data = 'data/testdata.json'
+ m = glob.glob('data/*.testdata.json')
+ if m:
+ default_test_data = m[0]
default_tests = ''
default_target_type = 'simpleremote'
- default_manifest = 'data/manifest'
+ m = glob.glob('data/*.manifest')
+ if m:
+ default_manifest = m[0]
default_server_ip = '192.168.7.1'
default_target_ip = '192.168.7.2'
default_host_dumper_dir = '/tmp/oe-saved-tests'
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list