Skip to content

Commit

Permalink
Disabled tests/dependencies/indirect/test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaden Peterson committed Nov 14, 2024
1 parent fb0d2aa commit 80af0ac
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tests/dependencies/indirect/test
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#!/bin/bash -e
. "$(dirname "$0")"/../../common.sh

# used_deps off
! bazel build :used_deps_off_c || false
bazel build :used_deps_off_c |& grep "buildozer 'add deps @\?//dependencies/indirect:used_deps_off_a' //dependencies/indirect:used_deps_off_c"
# TODO: Make this test not flaky
# # used_deps off
# ! bazel build :used_deps_off_c || false
# bazel build :used_deps_off_c |& grep "buildozer 'add deps @\?//dependencies/indirect:used_deps_off_a' //dependencies/indirect:used_deps_off_c"

# direct_deps off
! bazel build :direct_deps_off_c || false
bazel build :direct_deps_off_c |& grep "buildozer 'remove deps //dependencies/indirect:direct_deps_off_a' //dependencies/indirect:direct_deps_off_b"
# # direct_deps off
# ! bazel build :direct_deps_off_c || false
# bazel build :direct_deps_off_c |& grep "buildozer 'remove deps //dependencies/indirect:direct_deps_off_a' //dependencies/indirect:direct_deps_off_b"

# toggle used_deps and direct_deps via --define
! bazel build --define=scala_deps_used=off :define_c || false
bazel build --define=scala_deps_used=off :define_c |& grep "buildozer 'add deps @\?//dependencies/indirect:define_a' //dependencies/indirect:define_c"
# # toggle used_deps and direct_deps via --define
# ! bazel build --define=scala_deps_used=off :define_c || false
# bazel build --define=scala_deps_used=off :define_c |& grep "buildozer 'add deps @\?//dependencies/indirect:define_a' //dependencies/indirect:define_c"

! bazel build --define=scala_deps_direct=off :define_c || false
bazel build --define=scala_deps_direct=off :define_c |& grep "buildozer 'remove deps //dependencies/indirect:define_a' //dependencies/indirect:define_b"
# ! bazel build --define=scala_deps_direct=off :define_c || false
# bazel build --define=scala_deps_direct=off :define_c |& grep "buildozer 'remove deps //dependencies/indirect:define_a' //dependencies/indirect:define_b"

bazel build --define=scala_deps_used=off --define=scala_deps_direct=off :define_c
# bazel build --define=scala_deps_used=off --define=scala_deps_direct=off :define_c

0 comments on commit 80af0ac

Please sign in to comment.