Skip to content

Commit ee41f85

Browse files
authored
Merge pull request ceph#58581 from rkhudov/src-test-rgw-test_multi-update-documentation
src/test/rgw/test_multlti.md:update documentation for multi tests run Reviewed-by: Shilpa Jagannath <[email protected]>
2 parents 2ab1415 + a3d2148 commit ee41f85

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/test/rgw/test_multi.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ $ cd /path/to/ceph/src/test/rgw/
99
$ nosetests test_multi.py
1010
```
1111
This will assume a configuration file called `/path/to/ceph/src/test/rgw/test_multi.conf` exists.
12-
To use a different configuration file, set the `RGW_MULTI_TEST_CONF` environment variable to point to that file.
12+
To use a different configuration file, set the `RGW_MULTI_TEST_CONF` environment variable to point to that file. Here is an example of configuration file:
13+
```
14+
[DEFAULT]
15+
num_zonegroup=1
16+
num_zones=3
17+
gateway_per_zone=1
18+
no_bootstrap=false
19+
log_level=5
20+
```
1321
Since we use the same entry point file for all tests, running specific tests is possible using the following format:
1422
```
1523
$ nosetests test_multi.py:<specific_test_name>
@@ -19,6 +27,10 @@ To run multiple tests based on wildcard string, use the following format:
1927
$ nosetests test_multi.py -m "<wildcard string>"
2028
```
2129
Note that the test to run, does not have to be inside the `test_multi.py` file.
30+
Some tests have attributes set based on their current reliability. You can filter tests based on their attributes:
31+
```
32+
$ nosetests test_multi.py -a "!fails_with_rgw"
33+
```
2234
Note that different options for running specific and multiple tests exists in the [nose documentation](https://nose.readthedocs.io/en/latest/usage.html#options), as well as other options to control the execution of the tests.
2335
## Configuration
2436
### Environment Variables

0 commit comments

Comments
 (0)