Skip to contentSkip to conversation

cri-args-hostlists: Do not include transcript in reports

PATCH New Ian Jackson 1 participant 1 message May 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cri-args-hostlists: Do not include transcript in reports

These transcripts are huge and not useful.

Still include them if sg-secute-flight failed.

---
 cri-args-hostlists | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
cri-args-hostlists +5 -2
index 3578fe1c..28d576db 100644
@@ -86,8 +86,11 @@ execute_flight () {
         ./sg-execute-flight $1 $2 >tmp/$1.transcript 2>&1
 	local rc=$?
 	set -e
-        cat tmp/$1.transcript
-	test $rc = 0
+        if [ "$rc" != 0 ]; then
+		cat tmp/$1.transcript
+		echo "rc=$rc"
+		exit 1
+	fi
 }
 
 start_email () {
Signature · 1 line
2.20.1