>From dev/run-tests.py : def identify_changed_files_from_git_commits(patch_sha, target_branch=None, target_ref=None): """ Given a git commit and target ref, use the set of files changed in the diff in order to determine which modules' tests should be run.
Looks like the script needs git commit to determine which modules test suite should be run. I use the following command to run tests: mvn -Phive -Phive-thriftserver -Pyarn -Phadoop-2.4 -Dhadoop.version=2.7.0 package FYI On Thu, Dec 3, 2015 at 6:09 PM, wei....@kaiyuandao.com < wei....@kaiyuandao.com> wrote: > > hi, is there anyone knowing why I came to the following error when running > tests after a successful full build? thanks > > [root@sandbox spark_git]# dev/run-tests > ********************************************************************** > > File "./dev/run-tests.py", line 68, in > __main__.identify_changed_files_from_git_commits > Failed example: > [x.name > for x in determine_modules_for_files( > identify_changed_files_from_git_commits("fc0a1475ef", target_ref="5da21f07"))] > Exception raised: > Traceback (most recent call last): > File "/usr/lib64/python2.6/doctest.py", line 1253, in __run > compileflags, 1) in test.globs > > File "<doctest __main__.identify_changed_files_from_git_commits[0]>", > line 1, in <module> > [x.name > for x in determine_modules_for_files( > identify_changed_files_from_git_commits("fc0a1475ef", target_ref="5da21f07"))] > > File "./dev/run-tests.py", line 84, in > identify_changed_files_from_git_commits > > raw_output = subprocess.check_output(['git', 'diff', '--name-only', > patch_sha, diff_target], > AttributeError: 'module' object has no attribute 'check_output' > ********************************************************************** > > File "./dev/run-tests.py", line 70, in > __main__.identify_changed_files_from_git_commits > Failed example: > 'root' in [x.name > for x in determine_modules_for_files( > identify_changed_files_from_git_commits("50a0496a43", target_ref="6765ef9"))] > Exception raised: > Traceback (most recent call last): > File "/usr/lib64/python2.6/doctest.py", line 1253, in __run > compileflags, 1) in test.globs > > File "<doctest __main__.identify_changed_files_from_git_commits[1]>", > line 1, in <module> > 'root' in [x.name > for x in determine_modules_for_files( > identify_changed_files_from_git_commits("50a0496a43", target_ref="6765ef9"))] > >