We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c5557 commit 4f4ea96Copy full SHA for 4f4ea96
test.sh
@@ -48,6 +48,7 @@ analyze_logs_by_logdetective() {
48
return
49
fi
50
jq -rC '.explanation.text' < "/tmp/logdetective_test_output.txt"
51
+ set -e
52
echo "-------- LOGDETECTIVE TEST LOG ANALYSIS FINISHED --------"
53
}
54
@@ -74,9 +75,12 @@ for dir in ${VERSIONS}; do
74
75
76
77
if [ -n "${TEST_MODE}" ]; then
- tmp_file=$(mktemp "/tmp/${IMAGE_NAME}-${OS}-${dir}.XXXXXX")
78
+ set -o pipefail
79
+ tmp_file=$(mktemp "/tmp/${OS}-${dir}.XXXXXX")
80
VERSION=$dir test/run 2>&1 | tee "$tmp_file"
81
ret_code=$?
82
+ set +o pipefail
83
+ cat "${tmp_file}"
84
if [[ "${OS}" == "rhel8" ]] || [[ "${OS}" == "rhel9" ]] || [[ "${OS}" == "rhel10" ]]; then
85
analyze_logs_by_logdetective "$tmp_file"
86
0 commit comments