]> git.corax.cc Git - foundry/commitdiff
test: Don't create contexts without a name
authorMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 06:59:23 +0000 (15:59 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 06:59:23 +0000 (15:59 +0900)
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().

test.sh

diff --git a/test.sh b/test.sh
index d9d330a0973a7bbcf227c0f07cf8b21d1b73de5e..ce221722bf04fe6983643c05dd02cbb1cbf71650 100755 (executable)
--- 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