Make a full clean up of the imported key in tests

This commit is contained in:
Jakub Zelenka 2018-05-22 17:43:05 +01:00
parent 99e95d975c
commit 2a07550357

View file

@ -17,5 +17,16 @@ class gnupgt {
{
@unlink(__DIR__ . "/pubring.gpg");
@unlink(__DIR__ . "/secring.gpg");
@unlink(__DIR__ . "/pubring.kbx");
@unlink(__DIR__ . "/random_seed");
@unlink(__DIR__ . "/sshcontrol");
@unlink(__DIR__ . "/trustdb.gpg");
$privKeyDir = __DIR__ . '/private-keys-v1.d';
if (is_dir($privKeyDir)) {
foreach (glob($privKeyDir . '/*.key') as $key) {
unlink($key);
}
rmdir($privKeyDir);
}
}
}