From 03c5e9441a1e35b2e0a4c705f316c0b1f0dc580b Mon Sep 17 00:00:00 2001 From: Chris Down Date: Mon, 30 Mar 2020 19:17:11 +0100 Subject: [PATCH] tests: Set EXIT trap to show temp contents --- tests/test-clipmenu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-clipmenu b/tests/test-clipmenu index 45d8c65..d4f3fc6 100755 --- a/tests/test-clipmenu +++ b/tests/test-clipmenu @@ -71,6 +71,8 @@ EOF temp=$(mktemp) +trap 'cat "$temp"' EXIT + /tmp/clipmenu --foo bar > "$temp" 2>&1 # Arguments are transparently passed to dmenu