commit 00e221559e104b3e7dcfeef1c9deb7b0c65114ca
parent 2acece7dce6f6f2dd1e722c40b932f9358abd8e1
Author: Chris Down <chris@chrisdown.name>
Date: Fri, 17 Feb 2017 12:02:02 -0500
Set -x in test-clipmenu
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/test-clipmenu b/tests/test-clipmenu
@@ -1,5 +1,6 @@
#!/bin/bash
+set -x
set -e
set -o pipefail
@@ -61,6 +62,8 @@ EOF
output=$(/tmp/clipmenu --foo bar 2>&1)
temp=$(mktemp)
+trap 'rm -f -- "$temp"' EXIT
+
printf '%s\n' "$output" > "$temp"
# Arguments are transparently passed to dmenu