testbed: Clean up old reports

Before moving new one into place to upload it to orchestrator.
Hopefully this fixes jumbled reports.
This commit is contained in:
Ben Greear
2020-05-12 07:04:43 -07:00
parent dfd3dacc7c
commit 8ef6859a71

View File

@@ -250,6 +250,7 @@ for ($i = 0; $i<@lines; $i++) {
if ($ap_out =~ /Results-Dir: (.*)/g) {
my $rslts_dir = $1;
print ("Found results at: $rslts_dir\n");
do_system("rm -fr /tmp/$report_name");
do_system("mv $rslts_dir /tmp/$report_name");
do_system("scp -r /tmp/$report_name $report_to/");
do_system("echo $fname > /tmp/NEW_RESULTS-$fname");