D5208: tests: add some helpful `|| cat` bits to test-profile.t
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Nov 1 21:17:10 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This way if the hg invocation crashes, you get to see a stacktrace
without having to edit the test.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5208
AFFECTED FILES
tests/test-profile.t
CHANGE DETAILS
diff --git a/tests/test-profile.t b/tests/test-profile.t
--- a/tests/test-profile.t
+++ b/tests/test-profile.t
@@ -86,22 +86,22 @@
Various statprof formatters work
- $ hg --profile --config profiling.statformat=byline sleep 2>../out
+ $ hg --profile --config profiling.statformat=byline sleep 2>../out || cat ../out
$ head -n 3 ../out
% cumulative self
time seconds seconds name
* sleepext.py:*:sleep (glob)
$ cat ../out | statprofran
- $ hg --profile --config profiling.statformat=bymethod sleep 2>../out
+ $ hg --profile --config profiling.statformat=bymethod sleep 2>../out || cat ../out
$ head -n 1 ../out
% cumulative self
$ cat ../out | statprofran
- $ hg --profile --config profiling.statformat=hotpath sleep 2>../out
+ $ hg --profile --config profiling.statformat=hotpath sleep 2>../out || cat ../out
$ cat ../out | statprofran
- $ hg --profile --config profiling.statformat=json sleep 2>../out
+ $ hg --profile --config profiling.statformat=json sleep 2>../out || cat ../out
$ cat ../out
\[\[-?\d+.* (re)
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list