Bug 378773

Summary: selftest dialog: 'Rerun Tests' not working (at least for gpgsm)
Product: [Applications] kleopatra Reporter: Achim Bohnet <ach>
Component: generalAssignee: Andre Heinecke <aheinecke>
Status: CONFIRMED ---    
Severity: minor CC: kdepim-bugs, mutz
Priority: VLO    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.