File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ rust_library(
2525 "another_dir" ,
2626 ],
2727 proc_macro_deps = [":write_outdirs_macro" ],
28- rustc_env = {
29- "EXTRA_OUTDIRS" : "test_dir,another_dir" ,
30- },
3128)
3229
3330extra_outdirs_test_suite (
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def _extra_outdirs_present_test(ctx):
1515 outputs = rustc_action .outputs .to_list ()
1616
1717 # Check that the expected directories are in the outputs
18- expected_dirs = ctx .attr .expected_outdirs
18+ expected_dirs = sorted ( ctx .attr .expected_outdirs )
1919 found_dirs = []
2020
2121 for output in outputs :
@@ -25,11 +25,14 @@ def _extra_outdirs_present_test(ctx):
2525 if output .basename in expected_dirs :
2626 found_dirs .append (output .basename )
2727
28+ # Sort found directories for consistent comparison
29+ found_dirs = sorted (found_dirs )
30+
2831 # Verify all expected directories were found
2932 asserts .equals (
3033 env ,
31- sorted ( found_dirs ) ,
32- sorted ( expected_dirs ) ,
34+ found_dirs ,
35+ expected_dirs ,
3336 "Expected to find directories {expected} in action outputs, but found {found}" .format (
3437 expected = expected_dirs ,
3538 found = found_dirs ,
You can’t perform that action at this time.
0 commit comments