summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pysvn/files')
-rw-r--r--dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch b/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch
new file mode 100644
index 000000000000..90f0fff48f07
--- /dev/null
+++ b/dev-python/pysvn/files/pysvn-1.7.1-skip_root_test.patch
@@ -0,0 +1,17 @@
+--- Tests/pysvn_test_common.mak
++++ Tests/pysvn_test_common.mak
+@@ -89,8 +89,12 @@
+
+ test-06.unix.new.log: test-06.sh test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log
+ -rm -rf testroot-06
+- if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then PATH=$(SVN_BIN_DIR):$(PATH) PYTHON=$(PYTHON) ./test-06.sh >test-06.unix.new.log 2>&1; fi
+- if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then $(PYTHON) benchmark_diff.py test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log test-06.unix.new.log; fi
++ if [[ $${UID} -ne 0 ]]; \
++ if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then PATH=$(SVN_BIN_DIR):$(PATH) PYTHON=$(PYTHON) ./test-06.sh >test-06.unix.new.log 2>&1; fi \
++ if PYTHONPATH=../Source $(PYTHON) svn_min_version.py 1 3 0; then $(PYTHON) benchmark_diff.py test-06.unix.known_good-$(KNOWN_GOOD_VERSION).log test-06.unix.new.log; fi \
++ else \
++ echo "Skipping $@, Reason: executed as root"; \
++ fi
+
+ clean-06:
+ -rm -f test-06.unix.new.log