diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-07-18 10:17:54 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-18 10:17:54 +1000 |
commit | d1c491ecb939ee10b341fa7bb6205dff19d297e5 (patch) | |
tree | 6481f985540610b8a07d391dff3e29af0594f172 | |
parent | 8a5bb3e78191cc206f970c26d2a26c949971e91a (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.sh | 6 |
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} | |||
154 | if [ "x$USE_VALGRIND" != "x" ]; then | 154 | if [ "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. |