summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2024-04-12 11:39:47 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2024-04-16 15:11:51 +0000
commitaf9c9bb401be6cb47c03d5b10f209abf4010a743 (patch)
tree37b06071df76cd3894f38962e6a693f04691e4b9
parent7fd73e03e1bb24be352328e4f34a85c29f9e2f69 (diff)
tcwg-update-lnt-results.sh: Remove previous reports
... before pushing new ones. This allows us to accurately match history in base-artifacts to the data in the dashboard. Without this we could have ghost reports in LNT dashboard for result entries removed from base-artifacts. Change-Id: Ifb1600f2650db28ccb8fb3d4643c120d4f746700
-rwxr-xr-xtcwg-update-lnt-results.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcwg-update-lnt-results.sh b/tcwg-update-lnt-results.sh
index 2e92a475..e31fba5d 100755
--- a/tcwg-update-lnt-results.sh
+++ b/tcwg-update-lnt-results.sh
@@ -63,8 +63,11 @@ update_one_lnt_results_project()
done
if [ ${#lnt_reports[@]} -gt 1 ]; then
+ echo "Deleting previous reports"
+ lnt updatedb --testsuite "$project" "$lntdb" --delete-machine "$config"
echo "Pushing ${lnt_reports[*]:1}"
lnt import --testsuite "$project" $lntdb "${lnt_reports[@]:1}"
+ echo "Done!"
else
echo "No lnt_report to push"
fi