buffering

This commit is contained in:
Efim Poberezkin 2022-02-17 13:22:08 +04:00
parent 6e606b83eb
commit 90960296b1
2 changed files with 4 additions and 1 deletions

View File

@ -4,9 +4,12 @@ import Simplex.StressTest
import System.Directory
import Test.Hspec
import Control.Monad
import System.IO
main :: IO ()
main = do
hSetBuffering stdout LineBuffering
hSetBuffering stderr LineBuffering
dirExists <- doesDirectoryExist "test"
when dirExists $ removeDirectoryRecursive "test"
createDirectoryIfMissing True "test"

View File

@ -20,7 +20,7 @@ Description=SMP server stress test
[Service]
Type=simple
ExecStart=/bin/sh -c "$binary"
ExecStart=/bin/sh -c 'exec $binary >> $HOME/test.log 2>&1'
Restart=always
RestartSec=3