From c400e2b11cd5bfe7bd19def3e10318338f8db224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Tue, 18 Apr 2023 20:37:00 +0200 Subject: Command-line option to keep test directory --- src/Run.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Run.hs') diff --git a/src/Run.hs b/src/Run.hs index 5b0ac2e..f54a38c 100644 --- a/src/Run.hs +++ b/src/Run.hs @@ -94,7 +94,7 @@ runTest out opts test = do failed <- atomically $ readTVar (teFailed tenv) case (res, failed) of (Right (), Nothing) -> do - removeDirectoryRecursive testDir + when (not $ optKeep opts) $ removeDirectoryRecursive testDir return True _ -> return False -- cgit v1.2.3