aboutsummaryrefslogtreecommitdiff
path: root/luks_test.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-10-11 18:21:42 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-10-11 18:21:42 +0200
commita182509960b87569402df5fec10700b163787d5c (patch)
treeba5798cdfa22b9d6c601b03d4c424f941d2de749 /luks_test.sh
parent7076ba694204c48d4b8037f8ba2822abd23454ea (diff)
luks_test.sh: redirect stderr to log file
main.c: removed obsolete waitpid and WIFEXITED check Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'luks_test.sh')
-rwxr-xr-xluks_test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/luks_test.sh b/luks_test.sh
index 971ab3b..98be5ea 100755
--- a/luks_test.sh
+++ b/luks_test.sh
@@ -26,10 +26,10 @@ if [ ! -w ${FILE} ] || [ `file ${FILE} | grep -qoE 'LUKS encrypted file' && echo
fi
if [ "x${DEBUG}" != "x" ]; then
- sudo valgrind --log-file=valgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" || true
- sudo valgrind --tool=helgrind --log-file=helgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" || true
+ sudo valgrind --log-file=valgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err.log || true
+ sudo valgrind --tool=helgrind --log-file=helgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err_hell.log || true
else
- sudo src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}"
+ sudo src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err.log
fi
set +e