Merge pull request #2276 from rust-lang/tshepang-patch-2
clean --bless text
This commit is contained in:
commit
511c7c2ea0
|
|
@ -172,16 +172,18 @@ additional arguments to the compiler when building the tests.
|
||||||
## Editing and updating the reference files
|
## Editing and updating the reference files
|
||||||
|
|
||||||
If you have changed the compiler's output intentionally, or you are making a new
|
If you have changed the compiler's output intentionally, or you are making a new
|
||||||
test, you can pass `--bless` to the test subcommand. E.g. if some tests in
|
test, you can pass `--bless` to the test subcommand.
|
||||||
`tests/ui` are failing, you can run
|
|
||||||
|
As an example,
|
||||||
|
if some tests in `tests/ui` are failing, you can run this command:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
./x test tests/ui --bless
|
./x test tests/ui --bless
|
||||||
```
|
```
|
||||||
|
|
||||||
to automatically adjust the `.stderr`, `.stdout` or `.fixed` files of
|
It automatically adjusts the `.stderr`, `.stdout`, or `.fixed` files of all `test/ui` tests.
|
||||||
all tests. Of course you can also target just specific tests with the
|
Of course you can also target just specific tests with the `--test-args your_test_name` flag,
|
||||||
`--test-args your_test_name` flag, just like when running the tests.
|
just like when running the tests without the `--bless` flag.
|
||||||
|
|
||||||
## Configuring test running
|
## Configuring test running
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue