Nothing Special   »   [go: up one dir, main page]

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

make root-test: support TESTFLAGS="-tags=no_btrfs" #996

Closed
wants to merge 1 commit into from

Conversation

AkihiroSuda
Copy link
Member

Now btrfs test can be skipped by setting TESTFLAGS="-tags=no_btrfs"

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

Now btrfs test can be skipped by setting TESTFLAGS="-tags=no_btrfs"

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@@ -0,0 +1,3 @@
// +build !linux no_btrfs
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: without this file, make root-test fails:

can't load package: package github.com/containerd/containerd/snapshot/btrfs: n
o buildable Go sourcefiles in /home/suda/gopath/src/github.com/containerd/cont
ainerd/snapshot/btrfs

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #996   +/-   ##
=======================================
  Coverage   59.05%   59.05%           
=======================================
  Files           5        5           
  Lines         779      779           
=======================================
  Hits          460      460           
  Misses        205      205           
  Partials      114      114
Impacted Files Coverage Δ
snapshot/btrfs/btrfs.go 55.08% <ø> (ø) ⬆️

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 4d44b93...3ec07a7. Read the comment docs.

@@ -1,4 +1,4 @@
// +build linux
// +build linux,!no_btrfs
Copy link
Member

Choose a reason for hiding this comment

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

All you need is this change to prevent tests from running. Why did you change the other two places? We don't want to sub out an entire package, just the import that we are already doing in the containerd.main

@AkihiroSuda
Copy link
Member Author

ok, instead, we should make target pkgs for make root-test configurable

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.

3 participants