Ticket #64: testcase.py

File testcase.py, 754 bytes (added by Steven Levine, 9 years ago)
Line 
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
11import sys
12import os
13
14from cvs2svn_lib.process import get_command_output
15
16pipe_cmd = ['cvs', '-Q', '-R', '-f', '-d', ':local:/sla_dev2/cvs2svn-2.4.0/0cvs', 'co', '-r1.1', '-p', '-kb', 'Exceptq/HISTORY']
17pipe_cmd = ['psfiles']
18
19# Enable this to check command operation without piping
20# os.system(' '.join(pipe_cmd))
21
22data = get_command_output(pipe_cmd)
23
24if not len(data):
25  print('Oops - command returned %d bytes' % len(data))