FAQ
Author: namit
Date: Fri Oct 12 14:34:26 2012
New Revision: 1397583

URL: http://svn.apache.org/viewvc?rev=1397583&view=rev
Log:
HIVE-3564 hivetest.py: revision number and applied patch
(Ivan Gorbachev via namit)


Modified:
hive/trunk/testutils/ptest/hivetest.py

Modified: hive/trunk/testutils/ptest/hivetest.py
URL: http://svn.apache.org/viewvc/hive/trunk/testutils/ptest/hivetest.py?rev=1397583&r1=1397582&r2=1397583&view=diff
==============================================================================
--- hive/trunk/testutils/ptest/hivetest.py (original)
+++ hive/trunk/testutils/ptest/hivetest.py Fri Oct 12 14:34:26 2012
@@ -456,6 +456,16 @@ def overwrite_results():
local.run('cp * "' + code_path + '/ql/src/test/results/' + name + '"',
warn_only = True)

+def save_svn_info():
+ if args.svn_info:
+ local.cd(master_base_path + '/trunk')
+ local.run('svn info > "{0}"'.format(report_path + '/svn-info'))
+
+def save_patch():
+ if args.save_patch:
+ local.cd(master_base_path + '/trunk')
+ local.run('svn diff > "{0}"'.format(report_path + '/patch'))
+
# -- Tasks that can be called from command line start here.

def cmd_prepare(patches = [], revision = None):
@@ -472,9 +482,12 @@ def cmd_prepare(patches = [], revision =
prepare_tests()

def cmd_run_tests(one_file_report = False):
+ prepare_for_reports()
+ save_svn_info()
+ save_patch()
+
t = Thread(target = run_other_tests)
t.start()
- prepare_for_reports()
run_tests()
t.join()

@@ -539,6 +552,10 @@ parser.add_argument('--singlehost', dest
'the script should not be run using sudo.')
parser.add_argument('--very-clean', action = 'store_true', dest = 'very_clean',
help = 'Build hive with `very-clean` option')
+parser.add_argument('--svn-info', dest = 'svn_info', action = 'store_true',
+ help = 'Save result of `svn info` into ${report_path}/svn-info')
+parser.add_argument('--save-patch', dest = 'save_patch', action = 'store_true',
+ help = 'Save applied patch into ${report_path}/patch')

args = parser.parse_args()

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedOct 12, '12 at 2:35p
activeOct 12, '12 at 2:35p
posts1
users1
websitehive.apache.org

1 user in discussion

Namit: 1 post

People

Translate

site design / logo © 2022 Grokbase