From f31cd9239e02fb15930951ed7cec9ac8d87f15c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20St=C3=A4ber?= Date: Sun, 3 Mar 2019 23:30:35 +0100 Subject: [PATCH] #5 debugging failed test on appveyor.com (Windows) --- tailer/fswatcher_test.go | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/tailer/fswatcher_test.go b/tailer/fswatcher_test.go index c49de3c7..95d44221 100644 --- a/tailer/fswatcher_test.go +++ b/tailer/fswatcher_test.go @@ -33,22 +33,30 @@ import ( "time" ) +//const tests = ` +//- name: single logfile +// commands: +// - [mkdir, logdir] +// - [log, test line 1, logdir/logfile.log] +// - [log, test line 2, logdir/logfile.log] +// - [start file tailer, readall=true, logdir/logfile.log] +// - [expect, test line 1, logdir/logfile.log] +// - [expect, test line 2, logdir/logfile.log] +// - [log, test line 3, logdir/logfile.log] +// - [expect, test line 3, logdir/logfile.log] +// - [logrotate, logdir/logfile.log, logdir/logfile.log.1] +// - [log, test line 4, logdir/logfile.log] +// - [expect, test line 4, logdir/logfile.log] +// - [log, test line 5, logdir/logfile.log] +// - [expect, test line 5, logdir/logfile.log] +//` + +// TEMPORARY TEST TO DEBUG A WINDOWS PROBLEM IN tearDown on AppVeyor.com const tests = ` - name: single logfile commands: - [mkdir, logdir] - - [log, test line 1, logdir/logfile.log] - - [log, test line 2, logdir/logfile.log] - - [start file tailer, readall=true, logdir/logfile.log] - - [expect, test line 1, logdir/logfile.log] - - [expect, test line 2, logdir/logfile.log] - - [log, test line 3, logdir/logfile.log] - - [expect, test line 3, logdir/logfile.log] - - [logrotate, logdir/logfile.log, logdir/logfile.log.1] - - [log, test line 4, logdir/logfile.log] - - [expect, test line 4, logdir/logfile.log] - - [log, test line 5, logdir/logfile.log] - - [expect, test line 5, logdir/logfile.log] + - [start file tailer, fail_on_missing_logfile=false, logdir/logfile.log] ` type testConfigType struct {