Skip to content

Commit

Permalink
Fix discard_graph_edges_test on Mac.
Browse files Browse the repository at this point in the history
The assertion in line #235 passes on Linux if the
limit is 9, on Darwin if it is 10.

Commenting out the code in BazelRulesModule.java
that automatically loads the sh_configure() rule
which instantiates @local_config_sh makes the test
pass with the old limit (8).

Change-Id: Ic2406a4da260b284e15852070d58472ca18340af
  • Loading branch information
laszlocsomor committed Apr 13, 2018
1 parent 0905472 commit 8da6df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/shell/integration/discard_graph_edges_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function test_packages_cleared() {
package_count="$(extract_histogram_count "$histo_file" \
'devtools\.build\.lib\..*\.Package$')"
# A few packages aren't cleared.
[[ "$package_count" -le 9 ]] \
[[ "$package_count" -le 10 ]] \
|| fail "package count $package_count too high"
glob_count="$(extract_histogram_count "$histo_file" "GlobValue$")"
[[ "$glob_count" -le 1 ]] \
Expand Down

0 comments on commit 8da6df1

Please sign in to comment.