From af9c9bb401be6cb47c03d5b10f209abf4010a743 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Fri, 12 Apr 2024 11:39:47 +0000 Subject: 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 --- tcwg-update-lnt-results.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3