Mercurial > hg
comparison tests/test-chg.t @ 51389:db5d7aee641e stable
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)
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Thu, 15 Feb 2024 18:10:41 +0000 |
parents | 7e5be4a7cda7 |
children | 8b77ad54d67a |
comparison
equal
deleted
inserted
replaced
51388:cb5175edd225 | 51389:db5d7aee641e |
---|---|
559 | 559 |
560 If CHGHG is not set, chg will set it before spawning the command server. | 560 If CHGHG is not set, chg will set it before spawning the command server. |
561 $ hg --kill-chg-daemon | 561 $ hg --kill-chg-daemon |
562 $ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \ | 562 $ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \ |
563 > 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \ | 563 > 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \ |
564 > | grep -E 'CHGHG|start' | 564 > | grep -E 'CHGHG|start cmdserver' |
565 chg: debug: * start cmdserver at * (glob) | 565 chg: debug: * start cmdserver at * (glob) |
566 CHGHG=/*/install/bin/hg (glob) | 566 CHGHG=/*/install/bin/hg (glob) |
567 | 567 |
568 Running the same command a second time shouldn't spawn a new command server. | 568 Running the same command a second time shouldn't spawn a new command server. |
569 $ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \ | 569 $ HG=$CHGHG CHGHG= CHGDEBUG= hg debugshell -c \ |
570 > 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \ | 570 > 'ui.write(b"CHGHG=%s\n" % ui.environ.get(b"CHGHG"))' 2>&1 \ |
571 > | grep -E 'CHGHG|start' | 571 > | grep -E 'CHGHG|start cmdserver' |
572 CHGHG=/*/install/bin/hg (glob) | 572 CHGHG=/*/install/bin/hg (glob) |