From a0ea7902e53dbb71b535cf5cb21f69e5cac4bf36 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 28 Aug 2023 09:57:43 +0800 Subject: [PATCH] * Change clear table to remove sql file. --- test/lib/yaml.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lib/yaml.class.php b/test/lib/yaml.class.php index a404b49d12..9a073b8a40 100644 --- a/test/lib/yaml.class.php +++ b/test/lib/yaml.class.php @@ -411,6 +411,10 @@ class yaml print_r($output); } } + elseif(file_exists($sqlPath) && $isClear && is_writable($sqlPath)) + { + unlink($sqlPath); + } $this->insertDB($sqlPath, $this->tableName, $isClear, $rows);