Show More
@@ -89,6 +89,16 b' another file or die after 5 seconds. If ' | |||
|
89 | 89 | script will die after the timeout before we could touch the file and the |
|
90 | 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 | 102 | $ cat > $TESTTMP/wait-output.sh << EOF |
|
93 | 103 | > #!/bin/sh |
|
94 | 104 | > for i in \`$TESTDIR/seq.py 50\`; do |
@@ -107,6 +117,8 b' resulting file will not exists. If not, ' | |||
|
107 | 117 | > [extensions] |
|
108 | 118 | > logtoprocess= |
|
109 | 119 | > pager= |
|
120 | > [pager] | |
|
121 | > pager = "$PYTHON" $TESTTMP/fakepager.py | |
|
110 | 122 | > [logtoprocess] |
|
111 | 123 | > commandfinish=$TESTTMP/wait-output.sh |
|
112 | 124 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now