[igt-dev] [PATCH i-g-t 3/3] added newline to 'END TESTLIST' to comply with runner string comparison
Jake Freeland
jake at technologyfriends.net
Wed Aug 17 14:21:29 UTC 2022
---
scripts/code_cov_gen_report | 9 +++------
tests/generate_testlist.sh | 2 +-
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/scripts/code_cov_gen_report b/scripts/code_cov_gen_report
index ffc8142e..b0696c51 100755
--- a/scripts/code_cov_gen_report
+++ b/scripts/code_cov_gen_report
@@ -138,8 +138,7 @@ if [ "$MODE" != "info" ]; then
echo "Creating per-file info files..."
echo -n "" >${MERGED_INFO}.info
for i in $RESULTS/*.tar.gz; do
- TITLE=$(basename $i)
- TITLE=$(basename $TITLE .tar.gz)
+ TITLE=$(basename "$i" .tar.gz)
echo "Adding results from $i..."
tar xf $i
@@ -155,8 +154,7 @@ if [ "$MODE" != "info" ]; then
TITLE=${MERGED_INFO}
else
- TITLE=$(basename $RESULTS)
- TITLE=$(basename $TITLE .tar.gz)
+ TITLE=$(basename "$RESULTS" .tar.gz)
echo "Adding results from $RESULTS..."
tar xf $RESULTS
@@ -177,8 +175,7 @@ else
echo "Copying $RESULTS to $DEST_DIR..."
cp $RESULTS .
- TITLE=$(basename $RESULTS)
- TITLE=$(basename $TITLE .info)
+ TITLE=$(basename "$RESULTS" .info)
fi
fi
diff --git a/tests/generate_testlist.sh b/tests/generate_testlist.sh
index 240a7eb5..ea999a45 100755
--- a/tests/generate_testlist.sh
+++ b/tests/generate_testlist.sh
@@ -15,4 +15,4 @@ while [ $# -gt 0 ] ; do
shift
done
-printf "\nEND TESTLIST" >> $OUTPUT
+printf "\nEND TESTLIST\n" >> $OUTPUT
--
2.37.2
More information about the igt-dev
mailing list