Skip to content

Commit 753b57e

Browse files
committed
Change default value of --reference-source to "cache"
1 parent 3893ab0 commit 753b57e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ Custom options for test_partdiff:
6060
--valgrind Use valgrind to execute the given executable.
6161
--max-num-tests=n Only perform n tests (default: 0 == unlimited).
6262
--reference-source={auto,cache,impl}
63-
Select the source of the reference output (cache == use
64-
only cached output from disk; impl == always execute
65-
reference implementation; auto (default) == try cache
66-
and fall back to impl).
63+
Select the source of the reference output (cache
64+
(default) == use only cached output from disk; impl ==
65+
always execute reference implementation; auto == try
66+
cache and fall back to impl).
6767
--num-threads=n Run the tests with n threads (default: 1). Comma-
6868
separated lists and number ranges are supported (e.g.
6969
"1-3,5-6").
@@ -132,9 +132,9 @@ If `n=0`, all tests are performed.
132132

133133
Control which data source is used to obtain the reference output:
134134

135-
- `cache` ==> Load from `reference_output` only
135+
- `cache` (default) ==> Load from `reference_output` only
136136
- `impl` ==> Start partdiff in `reference_implementation` only
137-
- `auto` (default) ==> Try to read from `reference_output` and fall back to reference impl, if data is not available
137+
- `auto` ==> Try to read from `reference_output` and fall back to reference impl, if data is not available
138138

139139
### `num-threads`
140140

conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ def pytest_addoption(parser: pytest.Parser) -> None:
212212
"--reference-source",
213213
help=(
214214
"Select the source of the reference output "
215-
"(cache == use only cached output from disk; "
215+
"(cache (default) == use only cached output from disk; "
216216
"impl == always execute reference implementation; "
217-
"auto (default) == try cache and fall back to impl)."
217+
"auto == try cache and fall back to impl)."
218218
),
219219
type=reference_source_param,
220-
default=util.ReferenceSource.auto,
220+
default=util.ReferenceSource.cache,
221221
choices=util.ReferenceSource,
222222
)
223223
custom_options.addoption(

0 commit comments

Comments
 (0)