Clean up files generated by make check.
authorDamien Goutte-Gattat <dgouttegattat@incenp.org>
Sat, 19 May 2018 21:56:34 +0000 (22:56 +0100)
committerDamien Goutte-Gattat <dgouttegattat@incenp.org>
Sat, 19 May 2018 21:56:34 +0000 (22:56 +0100)
* tests/clean-socketdir: Remove more test-generated files.
--

Running make check may generate more files in the test directory
(notably, if the tests are run while a token is present, the agent
will have written down the shadow keys), that we need to cleanup
afterwards.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
tests/clean-socketdir

index 32ffdc6..ccd454e 100755 (executable)
@@ -11,7 +11,9 @@ if [ "$GNUPGHOME" = "`/bin/pwd`" ]; then
         rmdir $socketdir || true
     fi
 
+    rm -f pubring.kbx reader_*.status
     if [ -d private-keys-v1.d ]; then
+        rm -f private-keys-v1.d/*.key
         rmdir private-keys-v1.d
     fi
 fi