Review Board 1.7.22


review request for HIVE-4417: Make unit tests input20.q, input33.q, newline.q in TestCliDriver working on Windows

Review Request #10783 - Created April 25, 2013 and updated

Shuaishuai Nie
Trunk
HIVE-4417
Reviewers
hive
hive-git
This patch makes unit test input20.q input33.q and newline.q works on windows

 
data/scripts/input20_script.py
New File

    
   
1
#

    
   
2
# Licensed to the Apache Software Foundation (ASF) under one

    
   
3
# or more contributor license agreements. See the NOTICE file

    
   
4
# distributed with this work for additional information

    
   
5
# regarding copyright ownership. The ASF licenses this file

    
   
6
# to you under the Apache License, Version 2.0 (the

    
   
7
# "License"); you may not use this file except in compliance

    
   
8
# with the License. You may obtain a copy of the License at

    
   
9
#

    
   
10
#   http://www.apache.org/licenses/LICENSE-2.0

    
   
11
#

    
   
12
# Unless required by applicable law or agreed to in writing,

    
   
13
# software distributed under the License is distributed on an

    
   
14
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

    
   
15
# KIND, either express or implied. See the License for the

    
   
16
# specific language governing permissions and limitations

    
   
17
# under the License.

    
   
18
#

    
   
19
import sys

    
   
20
import re

    
   
21
line = sys.stdin.readline()

    
   
22
x = 1

    
   
23
while line:

    
   
24
  tem = sys.stdin.readline()

    
   
25
  if line == tem:

    
   
26
    x = x + 1

    
   
27
  else:

    
   
28
    print str(x).strip()+'\t'+re.sub('\t','_',line.strip())

    
   
29
    line = tem

    
   
30
    x = 1
ql/src/test/queries/clientpositive/input20.q
Revision 0566ab1 New Change
 
ql/src/test/queries/clientpositive/input33.q
Revision 7ab1751 New Change
 
ql/src/test/queries/clientpositive/newline.q
Revision ccf2819 New Change
 
ql/src/test/results/beelinepositive/input20.q.out
Revision 1477da9 New Change
 
ql/src/test/results/beelinepositive/input33.q.out
Revision dd98d85 New Change
 
ql/src/test/results/beelinepositive/newline.q.out
Revision 6e95d9b New Change
 
ql/src/test/results/clientpositive/input20.q.out
Revision 90a8d3c New Change
 
ql/src/test/results/clientpositive/input33.q.out
Revision 464a0b6 New Change
 
ql/src/test/results/clientpositive/newline.q.out
Revision 9cdec49 New Change
 
  1. data/scripts/input20_script.py: Loading...
  2. ql/src/test/queries/clientpositive/input20.q: Loading...
  3. ql/src/test/queries/clientpositive/input33.q: Loading...
  4. ql/src/test/queries/clientpositive/newline.q: Loading...
  5. ql/src/test/results/beelinepositive/input20.q.out: Loading...
  6. ql/src/test/results/beelinepositive/input33.q.out: Loading...
  7. ql/src/test/results/beelinepositive/newline.q.out: Loading...
  8. ql/src/test/results/clientpositive/input20.q.out: Loading...
  9. ql/src/test/results/clientpositive/input33.q.out: Loading...
  10. ql/src/test/results/clientpositive/newline.q.out: Loading...