Skip to content

remove pkg/testutil/loopback_linux.go and use continuity/testutil/loopback#2694

Merged
dmcgowan merged 1 commit intocontainerd:masterfrom
AkihiroSuda:continuity-testutil
Oct 2, 2018
Merged

remove pkg/testutil/loopback_linux.go and use continuity/testutil/loopback#2694
dmcgowan merged 1 commit intocontainerd:masterfrom
AkihiroSuda:continuity-testutil

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda commented Sep 30, 2018

Signed-off-by: Akihiro Suda [email protected]

@AkihiroSuda AkihiroSuda force-pushed the continuity-testutil branch 2 times, most recently from a72cf6f to 60fdfbd Compare September 30, 2018 01:19
AkihiroSuda added a commit to AkihiroSuda/continuity that referenced this pull request Oct 1, 2018
containerd/containerd#2694 is going to import both `containerd/pkg/testutil` and
`continuity/testutil` for deduplicating `NewLoopback()`.

However, as the both pkg defines `test.root` BoolVar in `init()`, the test panics.

This commit avoids the panic issue by splitting `continuity/testutil/loopback_linux.go`
to another pkg (`continuity/testutil/loopback`), so taht containerd does not need to import
both `containerd/pkg/testutil` and `continuity/testutil`.
i.e. containerd will import `containerd/pkg/testutil` and `continuity/testutil/loopback`.

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda
Copy link
Copy Markdown
Member Author

AkihiroSuda commented Oct 1, 2018

Needs containerd/continuity#136 to be merged (EDIT: done)

#2694 is going to import both containerd/pkg/testutil and
continuity/testutil for deduplicating NewLoopback().

However, as the both pkg defines test.root BoolVar in init(), the test panics.

@AkihiroSuda AkihiroSuda changed the title containerd/pkg/testutil -> continuity/testutil remove pkg/testutil/loopback_linux.go and use continuity/testutil/loopback Oct 2, 2018
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2694 into master will increase coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2694      +/-   ##
=========================================
+ Coverage   43.07%   43.2%   +0.12%     
=========================================
  Files         100     100              
  Lines       10606   10606              
=========================================
+ Hits         4569    4582      +13     
+ Misses       5316    5301      -15     
- Partials      721     723       +2
Flag Coverage Δ
#linux 47.25% <ø> (+0.15%) ⬆️
#windows 40.24% <ø> (ø) ⬆️
Impacted Files Coverage Δ
mount/mountinfo_linux.go 61.22% <0%> (+8.16%) ⬆️
mount/lookup_unix.go 75% <0%> (+75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac01f20...5349fa3. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan dmcgowan added this to the 1.2 milestone Oct 2, 2018
@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Oct 2, 2018

LGTM

@dmcgowan dmcgowan merged commit 29dab3b into containerd:master Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants