diff options
-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. |