@@ -80,7 +80,7 @@ cliTests = do
8080smpServerTest :: Bool -> Bool -> IO ()
8181smpServerTest storeLog basicAuth = do
8282 -- init
83- capture_ (withArgs ([" init" , " -y" ] <> [" -l " | storeLog] <> [" --no-password" | not basicAuth]) $ smpServerCLI cfgPath logPath)
83+ capture_ (withArgs ([" init" , " -y" ] <> [" --disable-store-log " | not storeLog] <> [" --no-password" | not basicAuth]) $ smpServerCLI cfgPath logPath)
8484 >>= (`shouldSatisfy` ((" Server initialized, please provide additional server information in " <> cfgPath <> " /smp-server.ini" ) `isPrefixOf` ))
8585 Right ini <- readIniFile $ cfgPath <> " /smp-server.ini"
8686 lookupValue " STORE_LOG" " enable" ini `shouldBe` Right (if storeLog then " on" else " off" )
@@ -184,7 +184,7 @@ smpServerTestStatic = do
184184
185185ntfServerTest :: Bool -> IO ()
186186ntfServerTest storeLog = do
187- capture_ (withArgs ([" init" ] <> [" -l " | storeLog]) $ ntfServerCLI ntfCfgPath ntfLogPath)
187+ capture_ (withArgs ([" init" ] <> [" --disable-store-log " | not storeLog]) $ ntfServerCLI ntfCfgPath ntfLogPath)
188188 >>= (`shouldSatisfy` ((" Server initialized, you can modify configuration in " <> ntfCfgPath <> " /ntf-server.ini" ) `isPrefixOf` ))
189189 Right ini <- readIniFile $ ntfCfgPath <> " /ntf-server.ini"
190190 lookupValue " STORE_LOG" " enable" ini `shouldBe` Right (if storeLog then " on" else " off" )
@@ -202,7 +202,7 @@ ntfServerTest storeLog = do
202202
203203xftpServerTest :: Bool -> IO ()
204204xftpServerTest storeLog = do
205- capture_ (withArgs ([" init" , " -p" , " tests/tmp" , " -q" , " 10gb" ] <> [" -l " | storeLog]) $ xftpServerCLI fileCfgPath fileLogPath)
205+ capture_ (withArgs ([" init" , " -p" , " tests/tmp" , " -q" , " 10gb" ] <> [" --disable-store-log " | not storeLog]) $ xftpServerCLI fileCfgPath fileLogPath)
206206 >>= (`shouldSatisfy` ((" Server initialized, you can modify configuration in " <> fileCfgPath <> " /file-server.ini" ) `isPrefixOf` ))
207207 Right ini <- readIniFile $ fileCfgPath <> " /file-server.ini"
208208 lookupValue " STORE_LOG" " enable" ini `shouldBe` Right (if storeLog then " on" else " off" )
0 commit comments