[OE-core] [PATCH 37/55] oeqa/runtime/files: Move runtime files from old directory

Aníbal Limón anibal.limon at linux.intel.com
Fri Jan 20 17:10:08 UTC 2017


From: Mariano Lopez <mariano.lopez at linux.intel.com>

As part of the refactor we require to move the files used
in runtime testing to the new directory. This also adds
the path to the runtime test context.

[YOCTO #10234]

Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
---
 meta/lib/oeqa/runtime/context.py                                 | 2 ++
 meta/lib/oeqa/{runtime_cases => runtime}/files/hellomod.c        | 0
 meta/lib/oeqa/{runtime_cases => runtime}/files/hellomod_makefile | 0
 meta/lib/oeqa/{runtime_cases => runtime}/files/testmakefile      | 0
 4 files changed, 2 insertions(+)
 rename meta/lib/oeqa/{runtime_cases => runtime}/files/hellomod.c (100%)
 rename meta/lib/oeqa/{runtime_cases => runtime}/files/hellomod_makefile (100%)
 rename meta/lib/oeqa/{runtime_cases => runtime}/files/testmakefile (100%)

diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index 496730d..10a8872 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -9,6 +9,8 @@ from oeqa.runtime.loader import OERuntimeTestLoader
 
 class OERuntimeTestContext(OETestContext):
     loaderClass = OERuntimeTestLoader
+    runtime_files_dir = os.path.join(
+                        os.path.dirname(os.path.abspath(__file__)), "files")
 
     def __init__(self, td, logger, target, packages_manifest):
         super(OERuntimeTestContext, self).__init__(td, logger)
diff --git a/meta/lib/oeqa/runtime_cases/files/hellomod.c b/meta/lib/oeqa/runtime/files/hellomod.c
similarity index 100%
rename from meta/lib/oeqa/runtime_cases/files/hellomod.c
rename to meta/lib/oeqa/runtime/files/hellomod.c
diff --git a/meta/lib/oeqa/runtime_cases/files/hellomod_makefile b/meta/lib/oeqa/runtime/files/hellomod_makefile
similarity index 100%
rename from meta/lib/oeqa/runtime_cases/files/hellomod_makefile
rename to meta/lib/oeqa/runtime/files/hellomod_makefile
diff --git a/meta/lib/oeqa/runtime_cases/files/testmakefile b/meta/lib/oeqa/runtime/files/testmakefile
similarity index 100%
rename from meta/lib/oeqa/runtime_cases/files/testmakefile
rename to meta/lib/oeqa/runtime/files/testmakefile
-- 
2.1.4




More information about the Openembedded-core mailing list