1 | |
---|
2 | # testcase for python 2.7.6 pipe failure |
---|
3 | |
---|
4 | # 2015-03-30 SHL Baseline |
---|
5 | |
---|
6 | # Requires cvs2svn 2.4.0 to provide cvs2svn_lib.process |
---|
7 | # http://cvs2svn.tigris.org/files/documents/1462/49237/cvs2svn-2.4.0.tar.gz |
---|
8 | # Run this testcase script from root of cvs2svn source tree |
---|
9 | # Modify pipe_cmd to suit - failure does not depend on pipe_cmd |
---|
10 | |
---|
11 | import sys |
---|
12 | import os |
---|
13 | |
---|
14 | from cvs2svn_lib.process import get_command_output |
---|
15 | |
---|
16 | pipe_cmd = ['cvs', '-Q', '-R', '-f', '-d', ':local:/sla_dev2/cvs2svn-2.4.0/0cvs', 'co', '-r1.1', '-p', '-kb', 'Exceptq/HISTORY'] |
---|
17 | pipe_cmd = ['psfiles'] |
---|
18 | |
---|
19 | # Enable this to check command operation without piping |
---|
20 | # os.system(' '.join(pipe_cmd)) |
---|
21 | |
---|
22 | data = get_command_output(pipe_cmd) |
---|
23 | |
---|
24 | if not len(data): |
---|
25 | print('Oops - command returned %d bytes' % len(data)) |
---|