Skip to content
Snippets Groups Projects
Commit db5d7aee641e authored by Arseniy Alekseyev's avatar Arseniy Alekseyev
Browse files

tests: tweak chg test to make it fail less often

the test apparently sometimes prints the word "start" as a part of profile,
so let's no longer match "start":

   CHGHG=/*/install/bin/hg (glob)
+  \x1b[90m   | 50.0%  0.01s  profiling.py:   __enter__       line 196:  self.start()\x1b[0m (esc)
+  \x1b[90m   | 50.0%  0.01s  profiling.py:   start           line 261:  self._profiler.__enter__()\x1b[0m (esc)
+  \x1b[90m   | 50.0%  0.01s  profiling.py:   statprofile     line 125:  statprof.start(mechanism=b'...\x1b[0m (esc)
+  \x1b[90m   | 50.0%  0.01s  statprof.py:    start           line 356:  state.thread.start()\x1b[0m (esc)
+  \x1b[90m   | 50.0%  0.01s  threading.py:   start           line 852:  self._started.wait()\x1b[0m (esc)
parent cb5175edd225
No related branches found
No related tags found
2 merge requests!783Merge stable into default,!777cext: fix potential memory leaks of list items appended with PyList_Append
......@@ -561,10 +561,10 @@
$ hg --kill-chg-daemon
$ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \
> 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \
> | grep -E 'CHGHG|start'
> | grep -E 'CHGHG|start cmdserver'
chg: debug: * start cmdserver at * (glob)
CHGHG=/*/install/bin/hg (glob)
Running the same command a second time shouldn't spawn a new command server.
$ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \
> 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \
......@@ -565,8 +565,8 @@
chg: debug: * start cmdserver at * (glob)
CHGHG=/*/install/bin/hg (glob)
Running the same command a second time shouldn't spawn a new command server.
$ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \
> 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \
> | grep -E 'CHGHG|start'
> | grep -E 'CHGHG|start cmdserver'
CHGHG=/*/install/bin/hg (glob)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment