Fix failing test_rlib_dep_reader_call for omit CARGO_HOME#2527
Fix failing test_rlib_dep_reader_call for omit CARGO_HOME#2527sylvestre merged 2 commits intomozilla:mainfrom
Conversation
|
is it possible to add a test to make sure it doesn't regress? thanks |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2527 +/- ##
=======================================
Coverage 71.04% 71.05%
=======================================
Files 64 64
Lines 35369 35393 +24
=======================================
+ Hits 25128 25147 +19
- Misses 10241 10246 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I don't know how to do it. The test is environment-dependent, so what should the regression test do? Neither of |
|
I added the comment on why the code looks like this. It's the best I can think of. Checking if |
Fixes #2303
If the
CARGO_HOMEis empty, butrustcis installed globally, it will be used in thecompiler::rust::test::test_rlib_dep_reader_call.Now, the test fails as: