Project

General

Profile

Actions

action #15732

closed

Exit code missing from "magic string" on svirt

Added by michalnowak over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
-
Start date:
2017-01-02
Due date:
% Done:

0%

Estimated time:

Description

Sometimes exit code is missing from the "magic string" sent to serial line (https://openqa.suse.de/tests/692208/file/autoinst-log.txt):

12:31:32.3285 Debug: /var/lib/openqa/share/tests/sle/tests/console/textinfo.pm:22 called testapi::upload_logs
12:31:32.3286 26104 <<< testapi::script_run(name='curl --form upload=@/tmp/info.txt --form upname=textinfo-info.txt http://10.160.0.147:20133/7iYcoGfkno9PdIpN/uploadlog/info.txt; echo 3PVcL-$?- > /dev/ttyS0', wait=0)
12:31:32.3287 Debug: /var/lib/openqa/share/tests/sle/tests/console/textinfo.pm:22 called testapi::upload_logs
12:31:32.3288 26104 <<< testapi::type_string(string='curl --form upload=@/tmp/info.txt --form upname=textinfo-info.txt http://10.160.0.147:20133/7iYcoGfkno9PdIpN/uploadlog/info.txt; echo 3PVcL-$?- > /dev/ttyS0', max_interval=250, wait_screen_changes=0)
12:31:42.7782 Debug: /var/lib/openqa/share/tests/sle/tests/console/textinfo.pm:22 called testapi::upload_logs
12:31:42.7785 26104 <<< testapi::send_key(key='ret')
12:31:42.9796 Debug: /var/lib/openqa/share/tests/sle/tests/console/textinfo.pm:22 called testapi::upload_logs
12:31:42.9798 26104 <<< testapi::wait_serial(timeout=90, regexp='3PVcL-\\d+-')
3PVcL--
12:33:14.0994 26104 >>> testapi::wait_serial: 3PVcL-\d+-: fail
12:33:14.1004 26104 # Test died: command 'curl --form upload=@/tmp/info.txt --form upname=textinfo-info.txt http://10.160.0.147:20133/7iYcoGfkno9PdIpN/uploadlog/info.txt' failed at /var/lib/openqa/share/tests/sle/tests/console/textinfo.pm line 22.

So instead of 3PVcL-0- openQA sees in serial0.txt only 3PVcL--, i.e. w/o the exit code number.

When such a problem occurs, it's always the number, never any other literal.


Related issues 2 (0 open2 closed)

Related to openQA Project - action #17370: [svirt] serial0.txt is distorted on Xen HVMResolved2017-02-28

Actions
Blocks openQA Tests - action #10206: [tools]libvirt tests (Xen, Hyper-V, VMware)Resolvedmichalnowak2016-01-13

Actions
Actions

Also available in: Atom PDF