From dd371289aaceb00f1d97cb9916a6906718c87a9c Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Thu, 23 Nov 2017 16:51:28 +0800 Subject: [PATCH] CI: fix C++ unit test cases not executed by CI --- .gitlab-ci.yml | 21 +++++++++++++++++++++ tools/unit-test-app/tools/UnitTestParser.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1171543f27..b327068c2a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -625,6 +625,13 @@ UT_001_08: - UT_T1_1 - UT_default +UT_001_09: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T1_1 + - UT_default + UT_002_01: <<: *unit_test_template tags: @@ -681,6 +688,13 @@ UT_002_08: - UT_T1_1 - UT_release +UT_002_09: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T1_1 + - UT_release + UT_003_01: <<: *unit_test_template tags: @@ -793,6 +807,13 @@ UT_004_08: - UT_T1_1 - UT_psram +UT_004_09: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T1_1 + - UT_psram + IT_001_01: <<: *test_template tags: diff --git a/tools/unit-test-app/tools/UnitTestParser.py b/tools/unit-test-app/tools/UnitTestParser.py index 3ab911a8fe..c296077d31 100644 --- a/tools/unit-test-app/tools/UnitTestParser.py +++ b/tools/unit-test-app/tools/UnitTestParser.py @@ -62,7 +62,7 @@ class Parser(object): :param elf_file: elf file path :param app_name: built unit test app name """ - subprocess.check_output('xtensa-esp32-elf-objdump -t {} | grep \ test_desc > case_address.tmp'.format(elf_file), + subprocess.check_output('xtensa-esp32-elf-objdump -t {} | grep test_desc > case_address.tmp'.format(elf_file), shell=True) subprocess.check_output('xtensa-esp32-elf-objdump -s {} > section_table.tmp'.format(elf_file), shell=True)