Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

[roslaunch-check] Use roslaunch.core.printerrlog for printing error message.#1193

Merged
dirk-thomas merged 1 commit intoros:lunar-develfrom
130s:l/roslaunch-check_color
Dec 19, 2017
Merged

[roslaunch-check] Use roslaunch.core.printerrlog for printing error message.#1193
dirk-thomas merged 1 commit intoros:lunar-develfrom
130s:l/roslaunch-check_color

Conversation

@130s
Copy link
Copy Markdown
Member

@130s 130s commented Oct 18, 2017

Errors are printed without much stress, which makes hard to find the specific error occurred.

…essage.

Errors are printed without much stress, which makes hard to find the specific error occurred.
@130s 130s force-pushed the l/roslaunch-check_color branch from dc554ed to d182f42 Compare October 18, 2017 01:50
f.write(rosunit.junitxml.test_failure_junit_xml(test_name, message, stdout=error_msg,
class_name="roslaunch.RoslaunchCheck", testcase_name="%s_%s" % (pkg, outname)))
print("wrote test file to [%s]"%test_file)
roslaunch.core.printerrlog("wrote test file to [%s]"%test_file)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't seem to be an error message?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This if block is when error occurred. To highlight the file path this change is still useful.

@dirk-thomas
Copy link
Copy Markdown
Member

Thank you for the patch.

@dirk-thomas dirk-thomas merged commit 2e0a18f into ros:lunar-devel Dec 19, 2017
@130s 130s deleted the l/roslaunch-check_color branch December 19, 2017 14:55
@130s
Copy link
Copy Markdown
Member Author

130s commented Dec 21, 2017

Thank you for the review @dirk-thomas.
Just wondering if there will be another batch backport like #1008 soon for older supported branches and if this PR will be considered?

@dirk-thomas
Copy link
Copy Markdown
Member

There will likely be another Lunar release in the near term and after that a batch backport to Kinetic. All changes will be considered - the usual rational applies if a change should be backported. While this patch has little impact and wouldn't be necessary it also poses very little risk. Will see when doing the backporting.

miss_all = True
if miss_all:
print("Missing package dependencies: %s/package.xml: %s"%(pkg, ', '.join(miss)), file=sys.stderr)
roslaunch.core.printerrlog("Missing package dependencies: %s/package.xml: %s"%(pkg, ', '.join(miss)), file=sys.stderr)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The new function doesn't support the file keyword argument. See #1317.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants