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 two tests on Windows #1779

Merged
merged 3 commits into from
Nov 4, 2022
Merged

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Nov 3, 2022

🦟 Bug fix

Fixes failing test on windows.

Summary

The UNIT_SystemLoader_TEST has been failing on ign-gazebo6 since build 138 when #1685 was merged.

From debugging, I noticed that the problem was a trailing \ in one set of paths but not the other. I've used NormalizeDirectoryPath to fix the path comparisons.

Also fixes UNIT_Server_TEST

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Use NormalizeDirectoryPath to fix path
comparisons.

Signed-off-by: Steve Peters <[email protected]>
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Nov 3, 2022
@mjcarroll
Copy link
Contributor

bionic CI is indicating that this function doesn't exist in common.

@scpeters
Copy link
Member Author

scpeters commented Nov 4, 2022

oops, I just pushed another test fix

@scpeters scpeters force-pushed the scpeters/debug_system_loader_test branch from 20c226b to 5a1193e Compare November 4, 2022 00:02
@scpeters
Copy link
Member Author

scpeters commented Nov 4, 2022

bionic CI is indicating that this function doesn't exist in common.

I guess it's only on garden

@scpeters
Copy link
Member Author

scpeters commented Nov 4, 2022

bionic CI is indicating that this function doesn't exist in common.

I guess it's only on garden

no it's in SystemPaths

Signed-off-by: Steve Peters <[email protected]>
@codecov
Copy link

codecov bot commented Nov 4, 2022

Codecov Report

Merging #1779 (02b7378) into ign-gazebo6 (61df2c3) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           ign-gazebo6    #1779   +/-   ##
============================================
  Coverage        64.61%   64.61%           
============================================
  Files              321      321           
  Lines            26290    26290           
============================================
  Hits             16988    16988           
  Misses            9302     9302           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@scpeters scpeters changed the title Fix SystemLoader_TEST on Windows Fix two tests on Windows Nov 4, 2022
@scpeters
Copy link
Member Author

scpeters commented Nov 4, 2022

both UNIT_Server_TEST and UNIT_SystemLoader_TEST are fixed on windows:

@scpeters scpeters merged commit 6b103a0 into ign-gazebo6 Nov 4, 2022
@scpeters scpeters deleted the scpeters/debug_system_loader_test branch November 4, 2022 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants