action #62384
Updated by SLindoMansilla almost 4 years ago
## Observation
This code causes the test module be marked as failed, when it shouldn't.
```perl
record_info('Upgraded?',
'Has the SUT been upgraded or installed from LIVECD? Both can possibly cause orphans',
result => (is_offline_upgrade_or_livecd) ? 'ok' : 'fail');
```
## Suggestions
* Only show the message if orphans are detected.
## Reproducible
- In scenario sle-15-SP2-Online-ppc64le-extra_tests_in_textmode@ppc64le
- Fails since Build [126.1](https://openqa.suse.de/tests/3796286/modules/orphaned_packages_check/steps/2)
## Tasks
* display in the title whether the module is an upgrade or not:
```perl
record_info((is_offline_upgrade_or_live_cd)? "Upgrade/Live" "No upgrade/live")
```
## Expected result
It never worked since it was added.
Last good from Leap 15.2: [552.2](https://openqa.opensuse.org/tests/1143337#step/orphaned_packages_check/4)
## Further details
Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=ppc64le&distri=sle&flavor=Online&machine=ppc64le&test=extra_tests_in_textmode&version=15-SP2)