From 3bc5e42bd0186dbc5c47f022b9528207140fa297 Mon Sep 17 00:00:00 2001 From: ldelossa Date: Sat, 29 Aug 2020 15:32:28 -0400 Subject: [PATCH] tests: transition if under review this commit attempts to transition any failed test issues if they ticket is left in "Under Review" state Signed-off-by: ldelossa --- _t/500process.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_t/500process.t b/_t/500process.t index 7e5d1b1..37f18df 100755 --- a/_t/500process.t +++ b/_t/500process.t @@ -10,6 +10,10 @@ PLAN 84 ($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira start $issue; done) | sed 's/^/# CLEANUP: /g' ($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira stop $issue; done) | sed 's/^/# CLEANUP: /g' +# for any issues still remaining, they are stuck in "Under Review" status +($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira transition --noedit -m "approve" "Approve" $issue; done) | sed 's/^/# CLEANUP: /g' +($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira transition --noedit -m "done" "Done" $issue; done) | sed 's/^/# CLEANUP: /g' + # reset login RUNS $jira logout echo "gojira123" | RUNS $jira login