summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-18 10:17:54 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-18 10:17:54 +1000
commitd1c491ecb939ee10b341fa7bb6205dff19d297e5 (patch)
tree6481f985540610b8a07d391dff3e29af0594f172
parent8a5bb3e78191cc206f970c26d2a26c949971e91a (diff)
Allow low-priv tests to write to pipe dir.
When running regression tests with Valgrind and SUDO, the low-priv agent tests need to be able to create pipes in the appropriate directory.
-rw-r--r--regress/test-exec.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 274470761..a0bff3112 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -154,8 +154,10 @@ SCP_BIN=${SCP}
154if [ "x$USE_VALGRIND" != "x" ]; then 154if [ "x$USE_VALGRIND" != "x" ]; then
155 rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb 155 rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb
156 mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb 156 mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb
157 # ensure agent low-priv tests can write logs. 157 # When using sudo ensure low-priv tests can write pipes and logs.
158 chmod 777 $OBJ/valgrind-out 158 if [ "x$SUDO" != "x" ]; then
159 chmod 777 $OBJ/valgrind-out $OBJ/valgrind-vgdb
160 fi
159 VG_TEST=`basename $SCRIPT .sh` 161 VG_TEST=`basename $SCRIPT .sh`
160 162
161 # Some tests are difficult to fix. 163 # Some tests are difficult to fix.