diff options
author | Lucian Musat <george.l.musat@intel.com> | 2015-01-14 17:14:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-15 08:08:23 +0000 |
commit | 990c0048fc7fe363b679943fe0ed0434645711d9 (patch) | |
tree | cdbaa5f90fcf160032997e60406068118e07f673 /meta/lib/oeqa | |
parent | 3a3b41690fed1d20c13cf76b0c0bd424008adef1 (diff) | |
download | openembedded-core-990c0048fc7fe363b679943fe0ed0434645711d9.tar.gz openembedded-core-990c0048fc7fe363b679943fe0ed0434645711d9.tar.bz2 openembedded-core-990c0048fc7fe363b679943fe0ed0434645711d9.zip |
oeqa/ptest: Removed buildhistory as requirement for ptest
Signed-off-by: Lucian Musat <george.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/runtime/_ptest.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oeqa/runtime/_ptest.py b/meta/lib/oeqa/runtime/_ptest.py index 53b0807c4a..bf4d04171c 100644 --- a/meta/lib/oeqa/runtime/_ptest.py +++ b/meta/lib/oeqa/runtime/_ptest.py @@ -99,8 +99,6 @@ class PtestRunnerTest(oeRuntimeTest): return complementary_pkgs.split() def setUp(self): - self.buildhist_dir = oeRuntimeTest.tc.d.getVar("BUILDHISTORY_DIR_IMAGE", True) - self.assertTrue(os.path.exists(self.buildhist_dir)) self.ptest_log = os.path.join(oeRuntimeTest.tc.d.getVar("TEST_LOG_DIR",True), "ptest-%s.log" % oeRuntimeTest.tc.d.getVar('DATETIME', True)) @skipUnlessPassed('test_ssh') @@ -113,12 +111,12 @@ class PtestRunnerTest(oeRuntimeTest): self.target.run('/usr/bin/ptest-runner > /tmp/ptest.log 2>&1', 0) self.target.copy_from('/tmp/ptest.log', self.ptest_log) - shutil.copyfile(self.ptest_log, os.path.join(self.buildhist_dir, "ptest.log")) + shutil.copyfile(self.ptest_log, "ptest.log") - result = self.parse_ptest(os.path.join(self.buildhist_dir, "ptest.log")) + result = self.parse_ptest("ptest.log") log_results_to_location = "./results" if os.path.exists(log_results_to_location): shutil.rmtree(log_results_to_location) os.makedirs(log_results_to_location) - result.log_as_files(log_results_to_location, test_status = ['fail']) + result.log_as_files(log_results_to_location, test_status = ['pass','fail']) |