Skip to content

Properly move baseline files #10439

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

Merged
merged 1 commit into from
Aug 19, 2016

Conversation

RyanCavanaugh
Copy link
Member

Fixes some bad baseline behavior

var deleteEnding = '.delete';
for (var i in files) {
var filename = path.basename(files[i]);
Copy link
Member

@weswigham weswigham Aug 19, 2016

Choose a reason for hiding this comment

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

Replace with var filename = files[i].substr(sourceFolder.length + 1). (May need to call path.resolve on sourceFolder and files[i] first.) As it stands, any tests in subfolders (which is a thing for projects tests!) will get baselined up to the top (and then be missing).

Copy link
Member Author

Choose a reason for hiding this comment

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

These are actually already filename-only

@RyanCavanaugh RyanCavanaugh force-pushed the fixJakeBaselineAccept branch from f3c65ee to 6c60e5b Compare August 19, 2016 21:34
@weswigham
Copy link
Member

👍

@RyanCavanaugh RyanCavanaugh merged commit def29f6 into microsoft:master Aug 19, 2016
@RyanCavanaugh RyanCavanaugh deleted the fixJakeBaselineAccept branch August 19, 2016 22:10
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

3 participants