D3247: tests: load showstack in test-pull-http.t so network hangs are easier to find

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Apr 12 11:03:29 EDT 2018


durin42 updated this revision to Diff 8053.
durin42 edited the summary of this revision.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3247?vs=8011&id=8053

REVISION DETAIL
  https://phab.mercurial-scm.org/D3247

AFFECTED FILES
  tests/test-pull-http.t

CHANGE DETAILS

diff --git a/tests/test-pull-http.t b/tests/test-pull-http.t
--- a/tests/test-pull-http.t
+++ b/tests/test-pull-http.t
@@ -1,5 +1,16 @@
 #require killdaemons
 
+#if no-windows
+For debugging: this is a pretty simple test that is a good candidate
+for tracking down network-related bugs. Sometimes a command in this
+hangs, so having showstack pre-loaded is sometimes helpful. This also
+gives us a test that at least proves showstack can be loaded.
+  $ cat >> $HGRCPATH <<EOF
+  > [extensions]
+  > showstack = $TESTDIR/../contrib/showstack.py
+  > EOF
+#endif
+
   $ hg init test
   $ cd test
   $ echo a > a



To: durin42, #hg-reviewers
Cc: mharbison72, mercurial-devel


More information about the Mercurial-devel mailing list