##// END OF EJS Templates
tests: use NO_CHECK_EOF for fragments having intentional error...
FUJIWARA Katsunori -
r40241:89ba51c3 default
parent child Browse files
Show More
@@ -338,7 +338,7 b' Modify end of plain file, no EOL'
338
338
339 Record showfunc should preserve function across sections
339 Record showfunc should preserve function across sections
340
340
341 $ cat > f1.py <<EOF
341 $ cat > f1.py <<NO_CHECK_EOF
342 > def annotate(ui, repo, *pats, **opts):
342 > def annotate(ui, repo, *pats, **opts):
343 > """show changeset information by line for each file
343 > """show changeset information by line for each file
344 >
344 >
@@ -372,10 +372,10 b' Record showfunc should preserve function'
372 > .. container:: verbose
372 > .. container:: verbose
373 >
373 >
374 > Valid types are:
374 > Valid types are:
375 > EOF
375 > NO_CHECK_EOF
376 $ hg add f1.py
376 $ hg add f1.py
377 $ hg commit -m funcs
377 $ hg commit -m funcs
378 $ cat > f1.py <<EOF
378 $ cat > f1.py <<NO_CHECK_EOF
379 > def annotate(ui, repo, *pats, **opts):
379 > def annotate(ui, repo, *pats, **opts):
380 > """show changeset information by line for each file
380 > """show changeset information by line for each file
381 >
381 >
@@ -405,7 +405,7 b' Record showfunc should preserve function'
405 > .. container:: verbose
405 > .. container:: verbose
406 >
406 >
407 > Valid types are:
407 > Valid types are:
408 > EOF
408 > NO_CHECK_EOF
409 $ hg commit -i -m interactive <<EOF
409 $ hg commit -i -m interactive <<EOF
410 > y
410 > y
411 > y
411 > y
@@ -1251,9 +1251,9 b' Broken disabled extension and command:'
1251
1251
1252 $ mkdir hgext
1252 $ mkdir hgext
1253 $ echo > hgext/__init__.py
1253 $ echo > hgext/__init__.py
1254 $ cat > hgext/broken.py <<EOF
1254 $ cat > hgext/broken.py <<NO_CHECK_EOF
1255 > "broken extension'
1255 > "broken extension'
1256 > EOF
1256 > NO_CHECK_EOF
1257 $ cat > path.py <<EOF
1257 $ cat > path.py <<EOF
1258 > import os, sys
1258 > import os, sys
1259 > sys.path.insert(0, os.environ['HGEXTPATH'])
1259 > sys.path.insert(0, os.environ['HGEXTPATH'])
@@ -35,9 +35,9 b' Testing hghave extensibility for third p'
35 (terminate with exit code 2 at failure of importing hghaveaddon.py)
35 (terminate with exit code 2 at failure of importing hghaveaddon.py)
36
36
37 $ rm hghaveaddon.*
37 $ rm hghaveaddon.*
38 $ cat > hghaveaddon.py <<EOF
38 $ cat > hghaveaddon.py <<NO_CHECK_EOF
39 > importing this file should cause syntax error
39 > importing this file should cause syntax error
40 > EOF
40 > NO_CHECK_EOF
41
41
42 $ hghave custom
42 $ hghave custom
43 failed to import hghaveaddon.py from '.': invalid syntax (hghaveaddon.py, line 1)
43 failed to import hghaveaddon.py from '.': invalid syntax (hghaveaddon.py, line 1)
@@ -456,9 +456,9 b' preoutgoing hook can prevent outgoing ch'
456 > unreachable = 1
456 > unreachable = 1
457 > EOF
457 > EOF
458
458
459 $ cat > syntaxerror.py << EOF
459 $ cat > syntaxerror.py << NO_CHECK_EOF
460 > (foo
460 > (foo
461 > EOF
461 > NO_CHECK_EOF
462
462
463 test python hooks
463 test python hooks
464
464
General Comments 0
You need to be logged in to leave comments. Login now