From 68055f20f9a679f60bba847318f71bd914bf8ab2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 15 Feb 2021 07:17:40 +0100 Subject: [PATCH] also cleanup socket files --- tests/gnupgt.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gnupgt.inc b/tests/gnupgt.inc index 25cc1ae..c31415d 100644 --- a/tests/gnupgt.inc +++ b/tests/gnupgt.inc @@ -29,7 +29,7 @@ class gnupgt { return; } foreach (glob($homeDir . '/*') as $filename) { - if (is_file($filename)) { + if (!is_dir($filename)) { unlink($filename); } } @@ -208,4 +208,4 @@ class gnupgt { self::check_array(2048, $ret, 0, 'subkeys', 1, 'length'); self::check_array_from_version('1.7.0', false, $ret, 0, 'subkeys', 1, 'is_cardkey'); } -} \ No newline at end of file +}