You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/rgw/test_multi.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,15 @@ $ cd /path/to/ceph/src/test/rgw/
9
9
$ nosetests test_multi.py
10
10
```
11
11
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
+
```
13
21
Since we use the same entry point file for all tests, running specific tests is possible using the following format:
14
22
```
15
23
$ nosetests test_multi.py:<specific_test_name>
@@ -19,6 +27,10 @@ To run multiple tests based on wildcard string, use the following format:
19
27
$ nosetests test_multi.py -m "<wildcard string>"
20
28
```
21
29
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
+
```
22
34
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.
0 commit comments