Skip to content

Commit

Permalink
clean up dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aish Fenton committed Jan 31, 2023
1 parent e010a81 commit 779e5fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion test/shell/test_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function scala3_example() {
}

function test_produces_semanticdb_scala3() {
# NB: In subshell, so CD doesn't change local CWD
# NB: In subshell, so "cd" doesn't change local CWD
(
cd examples/testing/semanticdb_scala3
bazel run --extra_toolchains=//:semanticdb_toolchain //:run
Expand Down
20 changes: 0 additions & 20 deletions test/shell/test_semanticdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,5 @@ test_no_semanticdb() {
fi
}

test_produces_semanticdb_scala3() {
# NB: In subshell, so CD doesn't change local CWD
(
cd test/semanticdb/scala3
bazel run --extra_toolchains=//:semanticdb_toolchain //:run

local OUT_DIR="$(bazel info bazel-bin)/all.semanticdb"
if [ ! -d "$OUT_DIR" ]; then
echo "No SemanticDB out directory"
exit 1
fi

local SIZE=$(du -s $OUT_DIR | cut -f1)
if (( SIZE < 8 )); then
echo "No SemanticDb files produced"
exit 1
fi
)
}

$runner test_produces_semanticdb
$runner test_no_semanticdb

0 comments on commit 779e5fa

Please sign in to comment.