aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2014-09-19 18:33:36 -0700
committerBrian Dolbec <dolsen@gentoo.org>2014-09-19 21:49:53 -0700
commit44977e8deeeeba497f88f64a3236aa3361e80f97 (patch)
tree979455352554b3919dc56334e015790a5a7c6c45 /testpath
parentportageq: Migrate docstrings to a dictionary (diff)
downloadportage-44977e8deeeeba497f88f64a3236aa3361e80f97.tar.gz
portage-44977e8deeeeba497f88f64a3236aa3361e80f97.tar.bz2
portage-44977e8deeeeba497f88f64a3236aa3361e80f97.zip
testpath: Add a generic testpath script
Source this testpath script from the base checkout directory to run all checkout code.
Diffstat (limited to 'testpath')
-rw-r--r--testpath11
1 files changed, 11 insertions, 0 deletions
diff --git a/testpath b/testpath
new file mode 100644
index 000000000..144387dca
--- /dev/null
+++ b/testpath
@@ -0,0 +1,11 @@
+#
+# Generic testpath to source. This sets PATH and PYTHONPATH
+# to use the current checkout code, before searching the main PATH, PYTHONPATH
+# cd ~/.../portage
+# source ./testpath
+# emerge foo
+# repoman manifest
+# ...
+export PATH="$(dirname ${BASH_SOURCE[0]})/bin:${PATH}"
+export PYTHONPATH=PYTHONPATH="$(dirname $BASH_SOURCE[0])/pym:${PYTHONPATH:+:}${PYTHONPATH}"
+export PYTHONWARNINGS=d,i::ImportWarning