From: Matthias Kruk Date: Sun, 8 Aug 2021 06:59:23 +0000 (+0900) Subject: test: Don't create contexts without a name X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=a1b5f0e201fcc146ac853fd8bc724a5fcec0a9e0;p=foundry test: Don't create contexts without a name The testbot test script does not pass the name of the project to foundry_context_new(), causing the created contexts to have no name. This commit fixes test.sh so that the name of the repository is passed as the project name to foundry_context_new(). --- diff --git a/test.sh b/test.sh index d9d330a..ce22172 100755 --- a/test.sh +++ b/test.sh @@ -55,6 +55,9 @@ test_testbot() { local endpoint local testreq local context + local package + + package="${repository##*/}" if ! endpoint=$(ipc_endpoint_open); then log_error "Could not open IPC endpoint" @@ -66,7 +69,7 @@ test_testbot() { return 1 fi - if ! context=$(foundry_context_new); then + if ! context=$(foundry_context_new "$package"); then log_error "Could not make a new foundry context" return 1 fi