From f910c7535a93adaf96bc8571ab35670f0b5d09ca Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Wed, 30 Apr 2025 16:27:25 +0100 Subject: [PATCH] ci: Workaround cargo deny issue When a PR has no new files the cargo deny runner fails with: ``` [cargo-deny-generator.sh:17] ERROR: changed_files_status= ``` so add `|| true` to try and help this Co-authored-by: Ruoqing He Signed-off-by: stevenhorsman --- tests/common.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.bash b/tests/common.bash index 8e46070c31..7bde8d60e1 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -943,7 +943,7 @@ function run_get_pr_changed_file_details() # Make sure we have the targeting branch git remote set-branches --add origin "${branch}" git fetch -a - get_pr_changed_file_details + get_pr_changed_file_details || true } # Check if the 1st argument version is greater than and equal to 2nd one