ci: add debug artifacts for test_idf_tools

This commit is contained in:
Anton Maklakov
2021-06-05 15:59:42 +07:00
parent 99115d7e52
commit 18e7da0285
2 changed files with 6 additions and 1 deletions

View File

@@ -186,6 +186,11 @@ test_idf_py:
test_idf_tools:
extends: .host_test_template
artifacts:
when: on_failure
paths:
- tools/tools.new.json
expire_in: 1 week
script:
# Remove Xtensa and ULP toolchains from the PATH, tests will expect a clean environment
- export PATH=$(p=$(echo $PATH | tr ":" "\n" | grep -v "/root/.espressif/tools\|/opt/espressif" | tr "\n" ":"); echo ${p%:})

View File

@@ -124,7 +124,7 @@ class TestMaintainer(unittest.TestCase):
json_old = f.read()
with open(os.path.join(idf_path, 'tools/tools.new.json'), 'r') as f:
json_new = f.read()
self.assertEqual(json_old, json_new)
self.assertEqual(json_old, json_new, "Please check 'tools/tools.new.json' to find a cause!")
if __name__ == '__main__':