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

login
register
mail settings
Submitter phabricator
Date April 12, 2018, 3:03 p.m.
Message ID <aa1ab66f873c8b04f8b8de12255775e2@localhost.localdomain>
Download mbox | patch
Permalink /patch/30785/
State Not Applicable
Headers show

Comments

phabricator - April 12, 2018, 3:03 p.m.
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




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

Patch

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