diff --git a/test/bats/cli-test.bats b/test/bats/cli-test.bats index 581272733..6f5611f35 100644 --- a/test/bats/cli-test.bats +++ b/test/bats/cli-test.bats @@ -42,6 +42,8 @@ load helpers run bin/ratify verify -c $RATIFY_DIR/config_notation_crl.json -s $TEST_REGISTRY/notation:crl assert_cmd_verify_success + + stop_crl_server } @test "notation verifier with type test" { diff --git a/test/bats/helpers.bash b/test/bats/helpers.bash index 0f7cd580a..36d9a7e17 100644 --- a/test/bats/helpers.bash +++ b/test/bats/helpers.bash @@ -113,6 +113,9 @@ wait_for_process() { } run_crl_server() { - python3 ./scripts/crl_server.py & - echo $! + python3 ./scripts/crl_server.py +} + +stop_crl_server() { + pkill -f crl_server.py } \ No newline at end of file