File tree 2 files changed +6
-12
lines changed
2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -140,13 +140,9 @@ check that the test compiles successfully.
140
140
### Editing and updating the reference files
141
141
142
142
If you have changed the compiler's output intentionally, or you are
143
- making a new test, you can use the script ` ui/update-references.sh ` to
144
- update the references. When you run the test framework, it will report
145
- various errors: in those errors is a command you can use to run the
146
- ` ui/update-references.sh ` script, which will then copy over the files
147
- from the build directory and use them as the new reference. You can
148
- also just run ` ui/update-all-references.sh ` . In both cases, you can run
149
- the script with ` --help ` to get a help message.
143
+ making a new test, you can pass ` --bless ` to the command you used to
144
+ run the tests. This will then copy over the files
145
+ from the build directory and use them as the new reference.
150
146
151
147
### Normalization
152
148
Original file line number Diff line number Diff line change @@ -2596,15 +2596,13 @@ impl<'test> TestCx<'test> {
2596
2596
}
2597
2597
2598
2598
if errors > 0 {
2599
- println ! ( "To update references, run this command from build directory: " ) ;
2599
+ println ! ( "To update references, rerun the tests and pass the `--bless` flag " ) ;
2600
2600
let relative_path_to_file = self . testpaths
2601
2601
. relative_dir
2602
2602
. join ( self . testpaths . file . file_name ( ) . unwrap ( ) ) ;
2603
2603
println ! (
2604
- "{}/update-references.sh '{}' '{}'" ,
2605
- self . config. src_base. display( ) ,
2606
- self . config. build_base. display( ) ,
2607
- relative_path_to_file. display( )
2604
+ "To only update this specific test, also pass `--test-args {}`" ,
2605
+ relative_path_to_file. display( ) ,
2608
2606
) ;
2609
2607
self . fatal_proc_rec (
2610
2608
& format ! ( "{} errors occurred comparing output." , errors) ,
You can’t perform that action at this time.
0 commit comments