comparison tests/test-walk.t @ 39707:5abc47d4ca6b

tests: quote PYTHON usage Python3 defaults to installing under "Program Files".
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 18 Sep 2018 23:47:21 -0400
parents 67dc32d4e790
children 19ed212de2d1
comparison
equal deleted inserted replaced
39706:030d558c6456 39707:5abc47d4ca6b
601 <patternmatcher patterns='(?:ignored/file(?:/|$))'> 601 <patternmatcher patterns='(?:ignored/file(?:/|$))'>
602 f ignored/file ignored/file exact 602 f ignored/file ignored/file exact
603 603
604 Test listfile and listfile0 604 Test listfile and listfile0
605 605
606 $ $PYTHON -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')" 606 $ "$PYTHON" -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')"
607 $ hg debugwalk -v -I 'listfile0:listfile0' 607 $ hg debugwalk -v -I 'listfile0:listfile0'
608 * matcher: 608 * matcher:
609 <includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$))'> 609 <includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$))'>
610 f fenugreek fenugreek 610 f fenugreek fenugreek
611 f new new 611 f new new
612 $ $PYTHON -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')" 612 $ "$PYTHON" -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')"
613 $ hg debugwalk -v -I 'listfile:listfile' 613 $ hg debugwalk -v -I 'listfile:listfile'
614 * matcher: 614 * matcher:
615 <includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$)|mammals/skunk(?:/|$))'> 615 <includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$)|mammals/skunk(?:/|$))'>
616 f fenugreek fenugreek 616 f fenugreek fenugreek
617 f mammals/skunk mammals/skunk 617 f mammals/skunk mammals/skunk
642 $ cat >> printnum.py <<EOF 642 $ cat >> printnum.py <<EOF
643 > from __future__ import print_function 643 > from __future__ import print_function
644 > for i in range(20000 // 100): 644 > for i in range(20000 // 100):
645 > print('x' * 100) 645 > print('x' * 100)
646 > EOF 646 > EOF
647 $ $PYTHON printnum.py >> overflow.list 647 $ "$PYTHON" printnum.py >> overflow.list
648 $ echo fenugreek >> overflow.list 648 $ echo fenugreek >> overflow.list
649 $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx' 649 $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx'
650 f fennel fennel exact 650 f fennel fennel exact
651 f fenugreek fenugreek exact 651 f fenugreek fenugreek exact
652 $ cd .. 652 $ cd ..