Skip to content

Commit 692a070

Browse files
committed
fix: restore nightly config checks
1 parent 6730841 commit 692a070

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/verify-nightly-config.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,16 @@ run_check() {
164164
fi
165165

166166
if [ "${expect_nightly}" -eq 1 ]; then
167-
if rg -F --quiet "-Z threads=0" "${log_file}"; then
168-
if [ "${expect_nightly}" -eq 1 ]; then
169-
if rg -F --quiet -- "-Z threads=0" "${log_file}"; then
170167
if rg -F --quiet -- "-Z threads=0" "${log_file}"; then
171-
if rg -F --quiet -- "${fast_linker_test_flag}" "${log_file}"; then
172-
if rg -F --quiet -- "${fast_linker_test_flag}" "${log_file}"; then
168+
log_success "${label}: Nightly rustflags detected"
169+
else
170+
log_failure "${label}: Nightly rustflags missing"
171+
return 1
172+
fi
173173
fi
174174

175175
if [ "${expect_no_nightly}" -eq 1 ]; then
176-
if rg -F --quiet "-Z threads=0" "${log_file}"; then
176+
if rg -F --quiet -- "-Z threads=0" "${log_file}"; then
177177
log_failure "${label}: Unexpected nightly rustflags detected"
178178
return 1
179179
else
@@ -182,7 +182,7 @@ run_check() {
182182
fi
183183

184184
if [ "${expect_fast}" -eq 1 ]; then
185-
if rg -F --quiet "${fast_linker_test_flag}" "${log_file}"; then
185+
if rg -F --quiet -- "${fast_linker_test_flag}" "${log_file}"; then
186186
log_success "${label}: Fast linker rustflags detected"
187187
else
188188
log_failure "${label}: Fast linker rustflags missing"
@@ -191,7 +191,7 @@ run_check() {
191191
fi
192192

193193
if [ "${expect_no_fast}" -eq 1 ]; then
194-
if rg -F --quiet "${fast_linker_test_flag}" "${log_file}"; then
194+
if rg -F --quiet -- "${fast_linker_test_flag}" "${log_file}"; then
195195
log_failure "${label}: Unexpected fast linker rustflags detected"
196196
return 1
197197
else

0 commit comments

Comments
 (0)