From 3cad793e7859ff7c31f6e4ea2fe174fcd8e73a23 Mon Sep 17 00:00:00 2001 From: Stefan Mathis Date: Fri, 5 Dec 2025 08:32:45 +0100 Subject: [PATCH] Adjusted README --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2a67a43..88937d3 100755 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ in turn imports `ioc/config.cmd` to get the current configuration. ### General Running tests requires the following three steps: -- Starting the IOC via `ioc/startioc.py` (see [Configuration](#starting-the-ioc)) +- Starting the IOC via `ioc/startioc` (see [Configuration](#starting-the-ioc)) - Creating (if not done previously) and activating a suitable virtual environment: ```bash ./maketestenv @@ -78,24 +78,24 @@ source testenv/bin/activate ``` - Running the desired test(s) via pytest. For example: ```bash -pytest tests/sinqMotor/turboPmac/ +pytest tests/turboPmac1/ ``` This runs all Turbo PMAC tests within the directory. To run a specific test file: ```bash -pytest tests/sinqMotor/turboPmac/lin1/test_common.py +pytest tests/turboPmac1/ax1/test_common.py ``` And to run a specific test "test_something" within this file: ```bash -pytest tests/sinqMotor/turboPmac/lin1/test_common.py -k 'test_something' +pytest tests/turboPmac1/ax1/test_common.py -k 'test_something' ``` Pytest normally suppresses stdout (which is where Pythons `print` writes by default). To show it, use the `-s` flag: ```bash -pytest -s tests/sinqMotor/turboPmac/lin1/test_common.py -k 'test_something' +pytest -s tests/turboPmac1/ax1/test_common.py -k 'test_something' ``` ### Parallelizing tests over motors @@ -109,8 +109,8 @@ The individual tests for each motor are run sequentially. If a folder is given as an argument, all tests which are not within this folder are ignored. - `runtests` will run all tests parallelized per motor -- `runtests tests/sinqMotor/turboPmac` will run all Turbo PMAC tests parallelized per motor -- `runtests tests/sinqMotor/turboPmac/ax1` will only run the tests for motor `ax1`. These tests are run sequentially. +- `runtests tests/turboPmac1` will run all Turbo PMAC tests parallelized per motor +- `runtests tests/turboPmac1/ax1` will only run the tests for motor `ax1`. These tests are run sequentially. In addition to the parallelization feature, `runtests` also starts the IOC if it is not running already.