aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--test/pasta_options/log_to_file8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/pasta_options/log_to_file b/test/pasta_options/log_to_file
index fcdd553..f100216 100644
--- a/test/pasta_options/log_to_file
+++ b/test/pasta_options/log_to_file
@@ -33,15 +33,11 @@ test Log creation
set PORTS -t 10001,10002 -u 10001,10002
set LOG_FILE __STATEDIR__/pasta.log
-passt ./pasta -l __LOG_FILE__
-passtb exit
-sleep 1
+passt ./pasta -l __LOG_FILE__ -- /bin/true
check [ -s __LOG_FILE__ ]
test Log truncated on creation
-passt ./pasta -l __LOG_FILE__
-passtb exit
-sleep 1
+passt ./pasta -l __LOG_FILE__ -- /bin/true
check [ $(cat __LOG_FILE__ | wc -l) -eq 1 ]
test Maximum log size