From 3c3c91bda0e0e17ff7791eff5614276bd1c6c148 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 25 Jul 2017 20:39:43 +0200 Subject: tests/monitor: Simplify testcases By introducing 'O -' indicating that output should be identical as input, testcases can be simplified quite a bit. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/monitor/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/monitor/run-tests.sh') diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index e21ed688..de194624 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -20,6 +20,10 @@ cmd_append() { echo "$*" >>$command_file } output_append() { + [[ "$*" == '-' ]] && { + cat $command_file >>$output_file + return + } echo "$*" >>$output_file } run_test() { -- cgit v1.2.3