Review Board 1.7.22


Unable to generate the Hbase related unit tests using velocity templates on Windows

Review Request #7833 - Created Nov. 2, 2012 and updated

Kanna Karanam
hive
HIVE-3658
Reviewers
hive
ashutoshc, carl
hive
Requires to escape the “\” on windows to make it compile. So make sure to use the escaped path in the VM templates instead of actual path.
Done
trunk/hbase-handler/src/test/templates/TestHBaseCliDriver.vm
Revision 1404402 New Change
[20] 97 lines
[+20]
98
  public void testCliDriver_$tname() throws Exception {
98
  public void testCliDriver_$tname() throws Exception {
99
    long startTime = System.currentTimeMillis();
99
    long startTime = System.currentTimeMillis();
100
    try {
100
    try {
101
      System.out.println("Begin query: " + "$fname");
101
      System.out.println("Begin query: " + "$fname");
102

    
   
102

   
103
      qt.addFile("$qf.getCanonicalPath()");
103
      qt.addFile("$qfilesMap.get($fname)");
104

    
   
104

   
105
      if (qt.shouldBeSkipped("$fname")) {
105
      if (qt.shouldBeSkipped("$fname")) {
106
        System.out.println("Test $fname skipped");
106
        System.out.println("Test $fname skipped");
107
        return;
107
        return;
108
      }
108
      }
[+20] [20] 45 lines
trunk/hbase-handler/src/test/templates/TestHBaseNegativeCliDriver.vm
Revision 1404402 New Change
 
  1. trunk/hbase-handler/src/test/templates/TestHBaseCliDriver.vm: Loading...
  2. trunk/hbase-handler/src/test/templates/TestHBaseNegativeCliDriver.vm: Loading...