diff options
author | Chase Qi <chase.qi@linaro.org> | 2018-01-16 15:37:32 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2018-01-16 15:37:32 +0800 |
commit | 3f61f0a146fcc85dc1e72c7d9a0882e39009b1f4 (patch) | |
tree | e7c6fa43832ae87a6b73e670f7f3de3feae9c6e0 /zephyr-upstream | |
parent | 4c9ed2c2b116a994a24671d95d1f7d71701df227 (diff) |
zephyr-upstream: fix directory path for test list generating
* Enter WORKSPACE directory to ensure relative paths are valid
* Fix binary directory with 'out' instead of 'output'
Change-Id: I262b2d351a5632ef3090e91f4387f2bb7ca78c40
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'zephyr-upstream')
-rw-r--r-- | zephyr-upstream/submit_for_testing.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/zephyr-upstream/submit_for_testing.py b/zephyr-upstream/submit_for_testing.py index cb8c4b503b..e744091170 100644 --- a/zephyr-upstream/submit_for_testing.py +++ b/zephyr-upstream/submit_for_testing.py @@ -102,8 +102,8 @@ def generate_test_list(platform, device_type): for test in excluded_tests: print(test) - test_list = file_list('output/{}/tests'.format(platform), 'zephyr.bin') - shutil.rmtree('output', ignore_errors=True) + test_list = file_list('out/{}/tests'.format(platform), 'zephyr.bin') + shutil.rmtree('out', ignore_errors=True) # Test image path example: 'tests/kernel/pthread/test/zephyr.bin' test_list = [test.split('/', 2)[-1] for test in test_list] # Remove excluded tests. @@ -208,6 +208,9 @@ def main(): headers = { "Auth-Token": args.qa_token } + os.chdir(os.getenv('WORKSPACE')) + print('CWD: {}'.format(os.getcwd())) + print(os.listdir('.')) test_list = generate_test_list(args.board_name, args.device_type) for test in test_list: replace_dict = dict( |