rust/tests/run-make
Yuki Okushi 4dc48db310
Rollup merge of #108774 - jyn514:translation-errors, r=davidtwco
Greatly improve the error messages when `run-make/translation` fails

Before:
```
LD_LIBRARY_PATH="/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/lib:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/deps:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0/lib" '/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/bin/rustc' --out-dir /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation -L /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation  test.rs --sysroot /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot -Ztranslate-lang=zh-CN 2>&1 | grep "this is a test message"
------------------------------------------
--- stderr -------------------------------
make: *** [Makefile:51: sysroot] Error 1
------------------------------------------

failures:
    [run-make] tests/run-make/translation
```

After:

```
LD_LIBRARY_PATH="/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/lib:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/deps:/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage0/lib" '/home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/stage2/bin/rustc' --out-dir /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation -L /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation  test.rs --sysroot /home/gh-jyn514/rust/build/aarch64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot -Ztranslate-lang=zh-CN 2>&1 | grep "this is a test message"
[[[ begin stdout ]]]
error: failed to load fluent bundle: failed to add resource: Attempt to override an existing message: "parse_struct_literal_body_without_path".

[[[ end stdout ]]]
Error: cannot match: this is a test message
------------------------------------------
--- stderr -------------------------------
make: *** [Makefile:51: sysroot] Error 1
------------------------------------------

failures:
    [run-make] tests/run-make/translation
```
2023-03-07 23:06:23 +09:00
..
const_fn_mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
coverage Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
coverage-llvmir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
coverage-reports Update expected closure coverage info in test 2023-03-03 18:21:27 +01:00
dep-graph Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dump-mono-stats Move /src/test to /tests 2023-01-11 09:32:08 +00:00
emit-named-files Move /src/test to /tests 2023-01-11 09:32:08 +00:00
emit-path-unhashed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
emit-shared-files Move /src/test to /tests 2023-01-11 09:32:08 +00:00
env-dep-info Move /src/test to /tests 2023-01-11 09:32:08 +00:00
export-executable-symbols Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fmt-write-bloat Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incr-foreign-head-span Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incr-prev-body-beyond-eof Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incremental-session-fail incremental: migrate diagnostics 2023-01-30 17:11:35 +00:00
invalid-so Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-10971-temps-dir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36710 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47384 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-71519 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-83112-incr-test-moved-file Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85019-moved-src-dir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85401-static-mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85441 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-88756-default-output Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-96498 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
libtest-thread-limit Move /src/test to /tests 2023-01-11 09:32:08 +00:00
llvm-outputs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macos-deployment-target Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macos-fat-archive Move /src/test to /tests 2023-01-11 09:32:08 +00:00
native-link-modifier-bundle Upgrade mingw-w64 on CI 2023-01-29 13:01:06 +01:00
native-link-modifier-verbatim-linker Move /src/test to /tests 2023-01-11 09:32:08 +00:00
native-link-modifier-verbatim-rustc Move /src/test to /tests 2023-01-11 09:32:08 +00:00
native-link-modifier-whole-archive Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-input-file add test for no input file 2023-02-10 08:02:56 +00:00
overwrite-input Make output_filenames a real query 2023-01-23 10:35:21 +00:00
pass-linker-flags Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pass-linker-flags-from-dep Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-dylib-alt-calling-convention Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-dylib-c Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-dylib-import-name-type Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-dylib-inline-cross-dylib Upgrade mingw-w64 on CI 2023-01-29 13:01:06 +01:00
raw-dylib-link-ordinal Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-dylib-stdcall-ordinal Move /src/test to /tests 2023-01-11 09:32:08 +00:00
remap-path-prefix-dwarf Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repr128-dwarf Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
rlib-format-packed-bundled-libs Upgrade mingw-w64 on CI 2023-01-29 13:01:06 +01:00
rlib-format-packed-bundled-libs-2 Upgrade mingw-w64 on CI 2023-01-29 13:01:06 +01:00
rlib-format-packed-bundled-libs-3 [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
rustc-macro-dep-files Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-invalid-expr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-multiple Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-ordering Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-remap Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-test Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-scrape-examples-whitespace Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-verify-output-files fix inconsistent json outputs from rustdoc 2023-03-05 00:09:09 +03:00
rustdoc-with-out-dir-option Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-with-output-option Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-with-short-out-dir-option Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-pie Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
test-benches Move /src/test to /tests 2023-01-11 09:32:08 +00:00
thumb-none-cortex-m Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
thumb-none-qemu Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
track-path-dep-info Move /src/test to /tests 2023-01-11 09:32:08 +00:00
track-pgo-dep-info Move /src/test to /tests 2023-01-11 09:32:08 +00:00
translation Greatly improve the error messages when run-make/translation fails 2023-03-05 14:31:36 +00:00
unstable-flag-required Move /src/test to /tests 2023-01-11 09:32:08 +00:00
valid-print-requests Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-abi Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-custom-section Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-custom-sections-opt Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-export-all-symbols Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-import-module Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-panic-small Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-spurious-import Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-stringify-ints-small Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-symbols-different-module Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-symbols-not-exported Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wasm-symbols-not-imported Move /src/test to /tests 2023-01-11 09:32:08 +00:00
x86_64-fortanix-unknown-sgx-lvi Move /src/test to /tests 2023-01-11 09:32:08 +00:00
git_clone_sha1.sh Move /src/test to /tests 2023-01-11 09:32:08 +00:00