Added debug to find out what happens when it fails.

This commit is contained in:
nekral-guest
2008-03-19 18:16:56 +00:00
parent 99c78a4ae3
commit b3acd37d6d
2 changed files with 14 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ change_config
echo "/bin/su myuser -c 'ls config'> tmp/out 2> tmp/err"
/bin/su myuser -c 'ls config'> tmp/out 2> tmp/err
echo "su reported:"
echo "=== stdout ==="
cat tmp/out
echo "=== stderr ==="
cat tmp/err
echo "=============="
echo -n "Checking tmp/out..."
diff -au data/ls.out tmp/out
rm -f tmp/out

View File

@@ -20,6 +20,13 @@ change_config
echo "/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err"
/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err
echo "su reported:"
echo "=== stdout ==="
cat tmp/out
echo "=== stderr ==="
cat tmp/err
echo "=============="
echo -n "Checking tmp/out..."
case "$(cat tmp/out)" in
*/su/03)