Revert "Revert "Run Tests Without Dir.chdir"" - #52668
Merged
Hamms merged 2 commits intoJul 7, 2023
Merged
Conversation
Hamms
marked this pull request as ready for review
July 6, 2023 23:16
sureshc
approved these changes
Jul 7, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #52659, restoring #52619
The first attempt broke the Eyes test status page because for Eyes tests we started calling
runner.rbwith a full path to the feature likebundle exec ./runner.rb -f /home/ubuntu/test/dashboard/test/ui/features/acquisition_products/pd/workshop_dashboard.featurerather than a relative path likebundle exec ./runner.rb -f features/acquisition_products/pd/workshop_dashboard.feature. The tests themselves just care about finding the right file for each feature, so they worked just fine; the test status page cares about the actual string used to identify the feature, so it broke.I'm also working on a longer-term fix here to make
runner.rb(and the test status page) more flexible about where it's being called from, but in the meantime the easy fix is to just implement the manualcdin a way that preserves the original syntax.As with the original PR, I recommend reviewing with whitespace changes ignored
Testing Story
Verified that running
rake test:eyes_uilocally now callsrunner.rbwith relative rather than absolute file names: