From 7f66d2406fc68358c8e3cff62a86ae983f676fe4 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 7 Feb 2019 12:28:48 -0800 Subject: [PATCH] test script: Tell cargo which package has the tests --- script/test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/test b/script/test index 09cf9f83..066778b7 100755 --- a/script/test +++ b/script/test @@ -76,8 +76,8 @@ else fi if [[ "${mode}" == "debug" ]]; then - test_binary=$(cargo test --no-run --message-format=json 2> /dev/null | jq -rs '.[-1].filenames[0]') - lldb "${test_binary}" -- $top_level_filter + test_binary=$(cargo test --no-run --package=tree-sitter-cli --lib --message-format=json 2> /dev/null | jq -rs '.[-1].filenames[0]') + lldb "${test_binary}" -- "${top_level_filter}" else - cargo test --jobs 1 $top_level_filter -- --nocapture + cargo test --package=tree-sitter-cli --lib --jobs 1 $top_level_filter -- --nocapture fi