Skip to content

Commit 0d23a71

Browse files
committed
Deduplicate test command
1 parent 5c30142 commit 0d23a71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ci/docker/scripts/x86_64-gnu-llvm.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ set -ex
66
if [[ -z "${PR_CI_JOB}" ]]; then
77
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
88
# tests as it will fail them.
9-
# The tests are run a second time with the size optimizations enabled.
109
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
1110
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
12-
../x.py --stage 1 test library/std library/alloc library/core \
13-
--rustc-args "--cfg feature=\"optimize_for_size\""
1411
else
1512
../x.py --stage 1 test --skip src/tools/tidy
16-
../x.py --stage 1 test library/std library/alloc library/core \
17-
--rustc-args "--cfg feature=\"optimize_for_size\""
1813
fi
1914

15+
# The tests are run a second time with the size optimizations enabled.
16+
../x.py --stage 1 test library/std library/alloc library/core \
17+
--rustc-args "--cfg feature=\"optimize_for_size\""
18+
2019
# Run the `mir-opt` tests again but this time for a 32-bit target.
2120
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
2221
# both 32-bit and 64-bit outputs updated by the PR author, before

0 commit comments

Comments
 (0)