Show More
@@ -89,6 +89,16 b' another file or die after 5 seconds. If ' | |||||
89 | script will die after the timeout before we could touch the file and the |
|
89 | script will die after the timeout before we could touch the file and the | |
90 | resulting file will not exists. If not, we will touch the file and see it. |
|
90 | resulting file will not exists. If not, we will touch the file and see it. | |
91 |
|
91 | |||
|
92 | $ cat >> fakepager.py <<EOF | |||
|
93 | > import sys | |||
|
94 | > printed = False | |||
|
95 | > for line in sys.stdin: | |||
|
96 | > sys.stdout.write(line) | |||
|
97 | > printed = True | |||
|
98 | > if not printed: | |||
|
99 | > sys.stdout.write('paged empty output!\n') | |||
|
100 | > EOF | |||
|
101 | ||||
92 | $ cat > $TESTTMP/wait-output.sh << EOF |
|
102 | $ cat > $TESTTMP/wait-output.sh << EOF | |
93 | > #!/bin/sh |
|
103 | > #!/bin/sh | |
94 | > for i in \`$TESTDIR/seq.py 50\`; do |
|
104 | > for i in \`$TESTDIR/seq.py 50\`; do | |
@@ -107,6 +117,8 b' resulting file will not exists. If not, ' | |||||
107 | > [extensions] |
|
117 | > [extensions] | |
108 | > logtoprocess= |
|
118 | > logtoprocess= | |
109 | > pager= |
|
119 | > pager= | |
|
120 | > [pager] | |||
|
121 | > pager = "$PYTHON" $TESTTMP/fakepager.py | |||
110 | > [logtoprocess] |
|
122 | > [logtoprocess] | |
111 | > commandfinish=$TESTTMP/wait-output.sh |
|
123 | > commandfinish=$TESTTMP/wait-output.sh | |
112 | > EOF |
|
124 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now