]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - tests/common.sh
tests: Simplify redirection in tlsproxy_setup().
[tlsproxy/tlsproxy.git] / tests / common.sh
index eb60743d89a21087bd6e1fff1e7b9699037f9099..37c691beaf71bbb43480940b98dc58c9e17e1875 100644 (file)
@@ -35,7 +35,10 @@ abort() {
     exit 1
 }
 tlsproxy_setup() {
-    "$srcdir/../src/tlsproxy-setup" >/dev/null 2>/dev/null
+    "$srcdir/../src/tlsproxy-setup" >/dev/null 2>&1
+}
+tlsproxy_add() {
+    "$srcdir/../src/tlsproxy-add" "$1" "$srcdir/$2" >/dev/null 2>&1
 }
 tlsproxy() {
     ../src/tlsproxy -d2 "$@" >tlsproxy-log 2>&1 &