From b010a8a9d86c6c74b8c191235bf1f50b1e967ad5 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Thu, 20 Aug 2026 14:58:59 -0400 Subject: [PATCH] Harden orphans test against parallel test running --- tests/scripts/pulpcore/test_orphans.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/scripts/pulpcore/test_orphans.sh b/tests/scripts/pulpcore/test_orphans.sh index 03fc22ff8..b272a204a 100755 --- a/tests/scripts/pulpcore/test_orphans.sh +++ b/tests/scripts/pulpcore/test_orphans.sh @@ -4,9 +4,8 @@ set -eu # shellcheck source=tests/scripts/config.source . "$(dirname "$(dirname "$(realpath "$0")")")"/config.source -expect_succ pulp orphan cleanup - -test "$(echo "${OUTPUT}" | jq -r '.state' )" = "completed" +expect_fail pulp --dry-run orphan cleanup +test "${ERROUTPUT}" = "Error: Call aborted due to safe mode" pulp debug has-plugin --name "file" || exit 23 @@ -16,4 +15,6 @@ expect_succ pulp file content upload --file test_1.txt --relative-path orphan_te content_href=$(echo "${OUTPUT}" | jq -r .pulp_href) expect_succ pulp orphan cleanup --content-hrefs "[\"$content_href\"]" -expect_succ pulp orphan cleanup --protection-time 10 +test "$(echo "${OUTPUT}" | jq -r '.state' )" = "completed" + +expect_succ pulp orphan cleanup --protection-time 300