mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 16:54:51 +02:00
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.
This commit is contained in:
parent
8a5bb3e781
commit
d1c491ecb9
@ -154,8 +154,10 @@ SCP_BIN=${SCP}
|
|||||||
if [ "x$USE_VALGRIND" != "x" ]; then
|
if [ "x$USE_VALGRIND" != "x" ]; then
|
||||||
rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
||||||
mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
||||||
# ensure agent low-priv tests can write logs.
|
# When using sudo ensure low-priv tests can write pipes and logs.
|
||||||
chmod 777 $OBJ/valgrind-out
|
if [ "x$SUDO" != "x" ]; then
|
||||||
|
chmod 777 $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
||||||
|
fi
|
||||||
VG_TEST=`basename $SCRIPT .sh`
|
VG_TEST=`basename $SCRIPT .sh`
|
||||||
|
|
||||||
# Some tests are difficult to fix.
|
# Some tests are difficult to fix.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user