Skip to content

Commit 4c4bd69

Browse files
committed
code review comments
1 parent 9a18110 commit 4c4bd69

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/unit/extra_outdirs/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3330
extra_outdirs_test_suite(

test/unit/extra_outdirs/extra_outdirs_test.bzl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)