mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
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:
@@ -408,8 +408,11 @@ $cloud_sdk opensync.zone1.art2wave.com
|
||||
print_note("Upload results.");
|
||||
|
||||
#When complete, upload the results to the requested location.
|
||||
if ($ap_out =~ /Results-Dir: (.*)/g) {
|
||||
if ($ap_out =~ /Results-Dir: (.*)/) {
|
||||
my $rslts_dir = $1;
|
||||
if ($rslts_dir =~ /(.*)\'/) {
|
||||
$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");
|
||||
|
||||
Reference in New Issue
Block a user