Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

*: support running unit test on Windows #378

Merged
merged 2 commits into from
Nov 28, 2019
Merged

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Nov 27, 2019

What problem does this PR solve?

Supports running (not necessarily passing) make unit_test on Windows (because etcd doesn't work on WSL).

What is changed and how it works?

DM only has one non-Windows dependency which is computing the free space. Generalized this to work on Windows too.

Also, relaxed some tests which rely on Unix-specific error messages.

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

@kennytm kennytm added priority/unimportant Really minor change, requires approval from secondary reviewers status/PTAL This PR is ready for review. Add this label back after committing new changes type/enhancement Performance improvement or refactoring labels Nov 27, 2019
@kennytm kennytm force-pushed the kennytm/windows-unit-test branch from 3b12f57 to be7a062 Compare November 27, 2019 23:51
@kennytm
Copy link
Contributor Author

kennytm commented Nov 28, 2019

/run-all-tests

@csuzhangxc
Copy link
Member

/run-all-tests tidb=release-3.0

@codecov
Copy link

codecov bot commented Nov 28, 2019

Codecov Report

Merging #378 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master       #378   +/-   ##
===========================================
  Coverage   57.6864%   57.6864%           
===========================================
  Files           162        162           
  Lines         16373      16373           
===========================================
  Hits           9445       9445           
  Misses         6004       6004           
  Partials        924        924

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Nov 28, 2019
Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

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

LGTM

@WangXiangUSTC WangXiangUSTC added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Nov 28, 2019
@kennytm
Copy link
Contributor Author

kennytm commented Nov 28, 2019

/run-all-tests tidb=release-3.0

@kennytm kennytm merged commit ffd159f into master Nov 28, 2019
@kennytm kennytm deleted the kennytm/windows-unit-test branch November 28, 2019 07:35
csuzhangxc pushed a commit to csuzhangxc/dm that referenced this pull request Dec 11, 2019
csuzhangxc added a commit that referenced this pull request Dec 11, 2019
lichunzhu pushed a commit to lichunzhu/dm that referenced this pull request Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/unimportant Really minor change, requires approval from secondary reviewers status/LGT2 Two reviewers already commented LGTM, ready for merge type/enhancement Performance improvement or refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants