From aab1e2c3b18fe5c7967f373ba573097c021ff011 Mon Sep 17 00:00:00 2001 From: Juncheng Zhu Date: Sun, 15 Dec 2024 13:12:05 +0000 Subject: [PATCH] fix: update test 2 Signed-off-by: Juncheng Zhu --- test/bats/cli-test.bats | 2 ++ test/bats/helpers.bash | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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