action #30613
Updated by okurz over 6 years ago
## Problem Problem: From time to time, `script_output` does not only contain the actual output of a script but also other output from the system on the serial output. This can result in random strings in the middle of scripts. ## Example Example: https://openqa.suse.de/tests/1403728#step/btrfs_send_receive/48 is a nice example of this happening. The script generates two time the same hash (serial0.txt -> d62eb43dbcd156535e2444de5fa62d8c) but then fails to compare them because in the meantime there was also the login-prompt printed to the serial console. This then gets picked up as output from the script which is not the expected behavior. ## Expected result result: The return value from `script_output` does only contain the output of the script. No additional serial output. ## Suggestions Suggestion: * disable the getty service on the serial console which seems One possible solution would be to cause most if not all of the problems now and confirm we are not relying on the login session on the serial port and potentially extend the documentation of `script_output` accordingly * *Alternative:* let `script_output` use a second channel to communicate its result back which is only used by os-autoinst and not shared with the system-logging. E.g. a second serial connection.