Skip to content

Commit 511c7c2

Browse files
authored
Merge pull request #2276 from rust-lang/tshepang-patch-2
clean --bless text
2 parents 6e008e3 + 12b836b commit 511c7c2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/tests/running.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,18 @@ additional arguments to the compiler when building the tests.
172172
## Editing and updating the reference files
173173

174174
If you have changed the compiler's output intentionally, or you are making a new
175-
test, you can pass `--bless` to the test subcommand. E.g. if some tests in
176-
`tests/ui` are failing, you can run
175+
test, you can pass `--bless` to the test subcommand.
176+
177+
As an example,
178+
if some tests in `tests/ui` are failing, you can run this command:
177179

178180
```text
179181
./x test tests/ui --bless
180182
```
181183

182-
to automatically adjust the `.stderr`, `.stdout` or `.fixed` files of
183-
all tests. Of course you can also target just specific tests with the
184-
`--test-args your_test_name` flag, just like when running the tests.
184+
It automatically adjusts the `.stderr`, `.stdout`, or `.fixed` files of all `test/ui` tests.
185+
Of course you can also target just specific tests with the `--test-args your_test_name` flag,
186+
just like when running the tests without the `--bless` flag.
185187

186188
## Configuring test running
187189

0 commit comments

Comments
 (0)