Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix location of rosunit result files generated by rostests #668

Merged
merged 1 commit into from Sep 18, 2015

Conversation

dirk-thomas
Copy link
Member

Based on the discussion from #666 (comment)

@ros-pull-request-builder
Copy link
Member

Test passed.
Refer to this link for build results: http://jenkins.ros.org/job/_pull_request-indigo-ros_comm/390/

@dirk-thomas
Copy link
Member Author

@ros/ros_team Please take a look to review this patch.

@wjwwood
Copy link
Member

wjwwood commented Sep 18, 2015

lgtm

test_file = xmlResultsFile(test_pkg, test_name, False)
env = None
if results_base_dir:
env = {ROS_TEST_RESULTS_DIR: results_base_dir}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there potentially other env values that this is going to override or suppress? It might be better to append to the env instead of overriding it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other code uses the same pattern:

env = None
if options.results_base_dir:
env = {ROS_TEST_RESULTS_DIR: options.results_base_dir}
# #1140
if not os.path.isfile(test_file):
results_file = xmlResultsFile(pkg, outname, True, env=env)

And at the end of the call stack only this value is checked: https://github.com/ros-infrastructure/rospkg/blob/d3c12bdfbf990b9910220642bafef16b4c830b63/src/rospkg/environment.py#L162-L166

@esteve
Copy link
Member

esteve commented Sep 18, 2015

+1

1 similar comment
@tfoote
Copy link
Member

tfoote commented Sep 18, 2015

+1

dirk-thomas added a commit that referenced this pull request Sep 18, 2015
fix location of rosunit result files generated by rostests
@dirk-thomas dirk-thomas merged commit f528b4a into indigo-devel Sep 18, 2015
@dirk-thomas dirk-thomas deleted the fix_rostest_result_location_for_rosunit branch September 18, 2015 22:17
130s added a commit to 130s/industrial_ci that referenced this pull request Dec 18, 2015
rsinnet pushed a commit to MisoRobotics/ros_comm that referenced this pull request Jun 19, 2017
…osunit

fix location of rosunit result files generated by rostests
k-okada added a commit to k-okada/robot-programming that referenced this pull request Jun 15, 2019
k-okada added a commit to k-okada/robot-programming that referenced this pull request Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants