Project

General

Profile

action #166772

Updated by livdywan 28 days ago

## Observation 

 https://github.com/os-autoinst/scripts/blob/master/openqa-label-known-issues#L55 

 `if ! curl "${curl_args[@]}" -s "$testurl" -o "$out"; then` 

 Problem is that `$out` is overridden. Then, in case it doesnt reach the block, the script will continue with the `label_on_issues_from_issue_tracker` with modified context, when it is expected to be the context of autoinst-log.txt. 

 Raised on https://github.com/os-autoinst/scripts/pull/342/files#r1745228802 

 ## Acceptrance criteria 
 * **AC1**: The output file is written to the right location in the reference function. 

 ## Suggestions 
 * Research what the use of the output file is and how to test/verify this 
 * Try to make sense of the code to find out what the wanted behavior is 
 * Add unit tests

Back