Skip to content

Commit 0d5b3e6

Browse files
committed
ci: remove --enable-pytest from install.sh
1 parent bc15de9 commit 0d5b3e6

File tree

16 files changed

+23
-59
lines changed

16 files changed

+23
-59
lines changed

.gitlab/ci/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ generate_build_child_pipeline:
296296
variables:
297297
PYTEST_IGNORE_COLLECT_IMPORT_ERROR: "1"
298298
script:
299-
# requires basic pytest dependencies
300-
- run_cmd bash install.sh --enable-pytest
301299
- run_cmd python tools/ci/dynamic_pipelines/scripts/generate_build_child_pipeline.py
302300

303301
build_child_pipeline:

.gitlab/ci/common.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,13 @@ variables:
149149
section_start "running_install_sh" "Running install.sh"
150150
if [[ "${CI_JOB_STAGE}" == "build_doc" ]]; then
151151
run_cmd bash install.sh --enable-ci --enable-docs
152-
elif [[ "${CI_JOB_STAGE}" == "build" ]]; then
153-
run_cmd bash install.sh --enable-ci
154152
else
155-
if ! echo "${CI_JOB_NAME}" | egrep ".*pytest.*"; then
156-
run_cmd bash install.sh --enable-ci
157-
else
158-
run_cmd bash install.sh --enable-ci --enable-pytest --enable-test-specific
159-
fi
153+
run_cmd bash install.sh --enable-ci
160154
fi
161155
section_end "running_install_sh"
162156
else
163157
section_start "install_python_env" "Install Python environment"
164-
run_cmd python tools/idf_tools.py install-python-env --features ci,pytest,test-specific
158+
run_cmd python tools/idf_tools.py install-python-env --features ci,test-specific
165159
section_end "install_python_env"
166160
fi
167161

.gitlab/ci/pre_check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ check_test_scripts_build_test_rules:
120120
PYTEST_IGNORE_COLLECT_IMPORT_ERROR: "1"
121121
script:
122122
# requires basic pytest dependencies
123-
- run_cmd bash install.sh --enable-pytest
124123
- python tools/ci/check_build_test_rules.py check-test-scripts examples/ tools/test_apps components
125124

126125
check_configure_ci_environment_parsing:

.gitlab/ci/test-win.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test_tools_win:
6060
PYTHONPATH: "$PYTHONPATH;$IDF_PATH\\tools;$IDF_PATH\\tools\\esp_app_trace;$IDF_PATH\\components\\partition_table;$IDF_PATH\\tools\\ci\\python_packages"
6161
script:
6262
- python -m pip install jsonschema
63-
- .\install.ps1 --enable-ci --enable-pytest
63+
- .\install.ps1 --enable-ci
6464
- .\export.ps1
6565
- python "${SUBMODULE_FETCH_TOOL}" -s "all"
6666
- cd ${IDF_PATH}/tools/test_idf_py
@@ -78,7 +78,7 @@ test_tools_win:
7878
after_script: []
7979
timeout: 4 hours
8080
script:
81-
- .\install.ps1 --enable-ci --enable-pytest
81+
- .\install.ps1 --enable-ci
8282
- . .\export.ps1
8383
- python "${SUBMODULE_FETCH_TOOL}" -s "all"
8484
- cd ${IDF_PATH}\tools\test_build_system

.gitlab/ci/upload_cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ upload-pip-cache:
2121
policy: push
2222
script:
2323
- rm -rf .cache/pip # clear old packages
24-
- bash install.sh --enable-ci --enable-pytest
24+
- bash install.sh --enable-ci --enable-test-specific
2525
parallel:
2626
matrix:
2727
- GEO: [ 'shiny', 'brew' ]

components/esp_tee/test_apps/tee_test_fw/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
```bash
1818
cd $IDF_PATH
19-
bash install.sh --enable-ci --enable-pytest
19+
bash install.sh --enable-ci
2020
. ./export.sh
2121
```
2222

components/usb/test_apps/enum/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ When all the hardware have been configured and prepared, the Test can be run via
213213
214214
The description is provided, assuming that the test is run under Linux and Host board has a /dev/ttyACM0 path, Mocked Device has a /dev/ttyUSB0 path, and we are in the esp-idf root folder.
215215
216-
To run the pytest, esp-idf must be installed and configured with ```--enable-pytest```.
216+
To run the pytest, esp-idf must be installed and configured with `--enable-ci`.
217217
218218
### Prepare Host
219219

docs/en/contribute/esp-idf-tests-with-pytest.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ On the host side, ESP-IDF employs the pytest framework (alongside certain pytest
3333
Installation
3434
============
3535

36-
All basic dependencies could be installed by running the ESP-IDF install script with the ``--enable-pytest`` argument:
36+
All basic dependencies could be installed by running the ESP-IDF install script with the ``--enable-ci`` argument:
3737

3838
.. code-block:: bash
3939
40-
$ install.sh --enable-pytest
40+
$ install.sh --enable-ci
4141
42-
Additional test script specific dependencies could be installed separately by running the ESP-IDF install script with the ``--enable-pytest-specific`` argument:
42+
Additional test script specific dependencies could be installed separately by running the ESP-IDF install script with the ``--enable-test-specific`` argument:
4343

4444
.. code-block:: bash
4545
@@ -494,7 +494,7 @@ First you need to install ESP-IDF with additional Python requirements:
494494
.. code-block:: shell
495495
496496
$ cd $IDF_PATH
497-
$ bash install.sh --enable-ci --enable-pytest
497+
$ bash install.sh --enable-ci
498498
$ . ./export.sh
499499
500500
Build Directories

docs/zh_CN/contribute/esp-idf-tests-with-pytest.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ ESP-IDF 在主机端使用 pytest 框架(以及一些 pytest 插件)来自
3333
安装
3434
============
3535

36-
基础依赖项可以通过执行 ESP-IDF 安装脚本 ``--enable-pytest`` 进行安装:
36+
基础依赖项可以通过执行 ESP-IDF 安装脚本 ``--enable-ci`` 进行安装:
3737

3838
.. code-block:: bash
3939
40-
$ install.sh --enable-pytest
40+
$ install.sh --enable-ci
4141
42-
额外的测试脚本依赖项可以通过执行 ESP-IDF 安装脚本 ``--enable-pytest-specific`` 进行安装:
42+
额外的测试脚本依赖项可以通过执行 ESP-IDF 安装脚本 ``--enable-test-specific`` 进行安装:
4343

4444
.. code-block:: bash
4545
@@ -494,7 +494,7 @@ CI 的工作流程如下所示:
494494
.. code-block:: shell
495495
496496
$ cd $IDF_PATH
497-
$ bash install.sh --enable-ci --enable-pytest
497+
$ bash install.sh --enable-ci
498498
$ . ./export.sh
499499
500500
编译目录

examples/protocols/sockets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ They can also be run locally. Ref: [ESP-IDF Tests with Pytest Guide](https://doc
5656
Example:
5757
```bash
5858
$ cd $IDF_PATH
59-
$ bash install.sh --enable-pytest
59+
$ bash install.sh --enable-ci
6060
$ . ./export.sh
6161
$ cd examples/protocols/sockets/tcp_client
6262
$ python $IDF_PATH/tools/ci/ci_build_apps.py . --target esp32 -vv --pytest-apps

0 commit comments

Comments
 (0)