cicd: Fix bad regex in testbed_poll

If debugging is enabled, the 'echo' command would show the same
thing we were searching for, but with a single trailing quote.

Check for that and remove the trailing quote if needed.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2020-07-03 16:14:21 -07:00
parent 75784052cd
commit 5cd465ce3e

View File

@@ -408,8 +408,11 @@ $cloud_sdk opensync.zone1.art2wave.com
print_note("Upload results."); print_note("Upload results.");
#When complete, upload the results to the requested location. #When complete, upload the results to the requested location.
if ($ap_out =~ /Results-Dir: (.*)/g) { if ($ap_out =~ /Results-Dir: (.*)/) {
my $rslts_dir = $1; my $rslts_dir = $1;
if ($rslts_dir =~ /(.*)\'/) {
$rslts_dir = $1;
}
print ("Found results at: $rslts_dir\n"); print ("Found results at: $rslts_dir\n");
do_system("rm -fr /tmp/$report_name"); do_system("rm -fr /tmp/$report_name");
do_system("mv $rslts_dir /tmp/$report_name"); do_system("mv $rslts_dir /tmp/$report_name");