diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-04-18 20:37:00 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-04-18 20:38:57 +0200 |
commit | c400e2b11cd5bfe7bd19def3e10318338f8db224 (patch) | |
tree | 60509728d1a0c335cba9f9c89407884700373d42 /src/Run.hs | |
parent | 95e2468b3c92e6689a5de4a2c03a79b3ef035f8b (diff) |
Command-line option to keep test directory
Diffstat (limited to 'src/Run.hs')
-rw-r--r-- | src/Run.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |