Revision 7ebadeb3

b/Makefile.am
927 927
	test/ganeti.utils.filelock_unittest.py \
928 928
	test/ganeti.utils.hash_unittest.py \
929 929
	test/ganeti.utils.io_unittest.py \
930
	test/ganeti.utils.io_unittest-runasroot.py \
930 931
	test/ganeti.utils.log_unittest.py \
931 932
	test/ganeti.utils.mlock_unittest.py \
932 933
	test/ganeti.utils.nodesetup_unittest.py \
......
943 944
	test/docs_unittest.py \
944 945
	test/pycurl_reset_unittest.py \
945 946
	test/tempfile_fork_unittest.py
946
if HAS_FAKEROOT
947
python_tests += test/ganeti.utils.io_unittest-runasroot.py
948
endif
949 947

  
950 948
haskell_tests = htest/test
951 949

  
b/autotools/gen-coverage
37 37
for script; do
38 38
  if [[ "$script" == *-runasroot.py ]]; then
39 39
    if [[ -z "$FAKEROOT" ]]; then
40
      echo "FAKEROOT variable not set and needed for $script" >&2
41
      exit 1
40
      echo "WARNING: FAKEROOT variable not set: skipping $script" >&2
41
      continue
42 42
    fi
43 43
    cmdprefix="$FAKEROOT"
44 44
  else
b/autotools/testrunner
23 23
filename=$1
24 24

  
25 25
execasroot() {
26
  local fname=$1
27
  shift
26 28
  if [[ -z "$FAKEROOT" ]]; then
27
    echo "FAKEROOT variable not set" >&2
28
    exit 1
29
    echo "WARNING: FAKEROOT variable not set, skipping $fname" >&2
30
  else
31
    exec "$FAKEROOT" "$@"
29 32
  fi
30
  exec "$FAKEROOT" "$@"
31 33
}
32 34

  
33 35
case "$filename" in
34
  *-runasroot.py) execasroot $PYTHON "$@" ;;
36
  *-runasroot.py) execasroot $filename $PYTHON "$@" ;;
35 37
  *.py) exec $PYTHON "$@" ;;
36
  *-runasroot) execasroot "$@" ;;
38
  *-runasroot) execasroot $filename "$@" ;;
37 39
  *) exec "$@" ;;
38 40
esac

Also available in: Unified diff