Project

General

Profile

Actions

action #111584

open

upload_logs issue uploading files with space in the filename

Added by mpagot almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
2022-05-25
Due date:
% Done:

0%

Estimated time:

Description

Observation

Calling upload_logs with a filename like
/root/result/screenshots/first_visit/login.js/Trento login page -- remain here if wrong password (failed).png

It result in an error like

bash: syntax error near unexpected token `('

http://1c242.qa.suse.de/tests/203#step/test_trento_web/57

Steps to reproduce

use Mojo::Base 'publiccloud::basetest';
use base 'consoletest';
use strict;
use testapi;

sub run {
    my ($self, $args) = @_;
    $self->select_serial_terminal;

    assert_script_run 'echo "Hello World!" > echo.log';
    assert_script_run 'echo "Hello Space!" > "echo\ space.log"';
    upload_logs('echo.log');
    upload_logs('echo space.log');
}

Expected result

both echo.log and echo space.log available in the Log&Asset page

Actions

Also available in: Atom PDF