changeset 40619:def08813b290

tests: remove obsolete PYTHONPATH override from remotefilelog tests They were added in https://bitbucket.org/facebook/hg-experimental/commits/fdcad37a6a68cfbaf5920f3eeaa0cc9cae42bd26, which says this: When remotefilelog moved from its own repo, the tests needed to be updated to adjust the PYTHONPATH to ensure the in-repo remotefilelog was loaded instead of the system one. This meant any local runs of remotefilelog tests would've been using the system remotefilelog unless the user had manually set the PYTHONPATH themselves. That doesn't seem relevant with remotefilelog in core. Differential Revision: https://phab.mercurial-scm.org/D5248
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 09 Nov 2018 09:27:37 -0800
parents 95a079ea1e19
children a777ad36b287
files tests/test-remotefilelog-bad-configs.t tests/test-remotefilelog-bgprefetch.t tests/test-remotefilelog-blame.t tests/test-remotefilelog-bundle2-legacy.t tests/test-remotefilelog-bundle2.t tests/test-remotefilelog-bundles.t tests/test-remotefilelog-cacheprocess.t tests/test-remotefilelog-clone-tree.t tests/test-remotefilelog-clone.t tests/test-remotefilelog-corrupt-cache.t tests/test-remotefilelog-gc.t tests/test-remotefilelog-gcrepack.t tests/test-remotefilelog-http.t tests/test-remotefilelog-keepset.t tests/test-remotefilelog-linknodes.t tests/test-remotefilelog-local.t tests/test-remotefilelog-log.t tests/test-remotefilelog-partial-shallow.t tests/test-remotefilelog-permissions.t tests/test-remotefilelog-prefetch.t tests/test-remotefilelog-pull-noshallow.t tests/test-remotefilelog-push-pull.t tests/test-remotefilelog-repack-fast.t tests/test-remotefilelog-repack.t tests/test-remotefilelog-sparse.t tests/test-remotefilelog-tags.t tests/test-remotefilelog-wireproto.t
diffstat 27 files changed, 0 insertions(+), 81 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-remotefilelog-bad-configs.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bad-configs.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-bgprefetch.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bgprefetch.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-blame.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-blame.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-bundle2-legacy.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundle2-legacy.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
 generaldelta to generaldelta interactions with bundle2 but legacy clients
--- a/tests/test-remotefilelog-bundle2.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundle2.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-bundles.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundles.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-cacheprocess.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-cacheprocess.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init repo
--- a/tests/test-remotefilelog-clone-tree.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-clone-tree.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-clone.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-clone.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-corrupt-cache.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-corrupt-cache.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-gc.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-gc.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-gcrepack.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-gcrepack.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-http.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-http.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-keepset.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-keepset.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-linknodes.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-linknodes.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
 # Tests for the complicated linknode logic in remotefilelog.py::ancestormap()
 
   $ . "$TESTDIR/remotefilelog-library.sh"
--- a/tests/test-remotefilelog-local.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-local.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-log.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-log.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-partial-shallow.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-partial-shallow.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-permissions.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-permissions.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-prefetch.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-prefetch.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-pull-noshallow.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-pull-noshallow.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
 Set up an extension to make sure remotefilelog clientsetup() runs
--- a/tests/test-remotefilelog-push-pull.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-push-pull.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-repack-fast.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-repack-fast.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ cat >> $HGRCPATH <<EOF
--- a/tests/test-remotefilelog-repack.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-repack.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-sparse.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-sparse.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-tags.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-tags.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
--- a/tests/test-remotefilelog-wireproto.t	Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-wireproto.t	Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
-  $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
-  $ export PYTHONPATH
-
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master