Bug 378773 - selftest dialog: 'Rerun Tests' not working (at least for gpgsm)
Summary: selftest dialog: 'Rerun Tests' not working (at least for gpgsm)
Status: CONFIRMED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: VLO minor
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-14 11:45 UTC by Achim Bohnet
Modified: 2017-04-18 13:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2017-04-14 11:45:13 UTC
Reproduce

1) When /usr/bin/gpgsm does not exits on startup:
 * mv /usr/bin/gpgsm{,.away}
 * start kleopatra
 * selftest about gpgsm fails as expected
 * mv /usr/bin/gpgsm{.away,}
 * Click 'Rerun Tests' in the dialog
==> Bug: still complain about gpgsm

2) When /usr/bin/gpgsm does exits on startup:
 * start kleopatra
 * selftest about gpgsm passed as expected
 * Rename gpgsm: mv /usr/bin/gpgsm{,.away}
 * Click 'Rerun Tests' in the dialog
==> Bug: gpgsm test still passes, instead of complaining absense of gpgsm

Reprocudeability: always
Comment 1 Andre Heinecke 2017-04-18 13:32:55 UTC
Indeed. The Installation tests are only run once because they rely on information from GPGME which is cached for performance reasons. (So that there is no process call each time the version of a component is checked in the code.)

Confirmed but very low priority as the installation tests would basically point to malicious tinkering with the system or a distribution problem.