diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/context.py')
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 302ff73bed..fd9280f8a9 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -100,10 +100,15 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
100 | 100 | ||
101 | def _process_args(self, logger, args): | 101 | def _process_args(self, logger, args): |
102 | args.test_start_time = time.strftime("%Y%m%d%H%M%S") | 102 | args.test_start_time = time.strftime("%Y%m%d%H%M%S") |
103 | args.output_log = '%s-results-%s.log' % (self.name, args.test_start_time) | ||
104 | args.test_data_file = None | 103 | args.test_data_file = None |
105 | args.CASES_PATHS = None | 104 | args.CASES_PATHS = None |
106 | 105 | ||
106 | bbvars = get_bb_vars() | ||
107 | logdir = os.environ.get("BUILDDIR") | ||
108 | if 'LOG_DIR' in bbvars: | ||
109 | logdir = bbvars['LOG_DIR'] | ||
110 | args.output_log = logdir + '/%s-results-%s.log' % (self.name, args.test_start_time) | ||
111 | |||
107 | super(OESelftestTestContextExecutor, self)._process_args(logger, args) | 112 | super(OESelftestTestContextExecutor, self)._process_args(logger, args) |
108 | 113 | ||
109 | if args.list_modules: | 114 | if args.list_modules: |
@@ -113,7 +118,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
113 | elif args.list_tests: | 118 | elif args.list_tests: |
114 | args.list_tests = 'name' | 119 | args.list_tests = 'name' |
115 | 120 | ||
116 | self.tc_kwargs['init']['td'] = get_bb_vars() | 121 | self.tc_kwargs['init']['td'] = bbvars |
117 | self.tc_kwargs['init']['machines'] = self._get_available_machines() | 122 | self.tc_kwargs['init']['machines'] = self._get_available_machines() |
118 | 123 | ||
119 | builddir = os.environ.get("BUILDDIR") | 124 | builddir = os.environ.get("BUILDDIR") |
@@ -303,7 +308,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
303 | 308 | ||
304 | output_link = os.path.join(os.path.dirname(args.output_log), | 309 | output_link = os.path.join(os.path.dirname(args.output_log), |
305 | "%s-results.log" % self.name) | 310 | "%s-results.log" % self.name) |
306 | if os.path.exists(output_link): | 311 | if os.path.lexists(output_link): |
307 | os.remove(output_link) | 312 | os.remove(output_link) |
308 | os.symlink(args.output_log, output_link) | 313 | os.symlink(args.output_log, output_link) |
309 | 314 | ||