-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Makefile:71: recipe for target 'localunittest' failed make: *** [localunittest] Error 1 #1713
Comments
The unit tests require you to run as root. You can also run them inside a (privileged) Docker container if you don't want to worry about the tests touching your host filesystem. |
It was running inside of container, iiuc, it was privileged mode. This was part of the log:
A full log below: Let me know if I supposed to run it differently. binchen@m:~/go/src/github.com/opencontainers/runc$ sudo make test goroutine 23 [running]: goroutine 1 [chan receive]: goroutine 17 [syscall, locked to thread]: goroutine 21 [syscall]: goroutine 11 [syscall]: goroutine 18 [syscall]: goroutine 12 [syscall]: |
I have something similar on Ubuntu 16.04 (DigitalOcean):
|
I'm not too sure about the CRIU error @tiborvass -- you should ping @avagin. |
Closing as outdated |
Step to reproduce:
6c55f98
All good.
--- PASS: TestResolveRootfs (0.00s)
=== RUN TestResolveRootfsWithSymlink
--- PASS: TestResolveRootfsWithSymlink (0.00s)
=== RUN TestResolveRootfsWithNonExistingDir
--- PASS: TestResolveRootfsWithNonExistingDir (0.00s)
=== RUN TestExitStatus
--- PASS: TestExitStatus (0.00s)
=== RUN TestExitStatusSignaled
--- PASS: TestExitStatusSignaled (0.00s)
=== RUN TestWriteJSON
--- PASS: TestWriteJSON (0.00s)
=== RUN TestCleanPath
--- PASS: TestCleanPath (0.00s)
PASS
ok github.com/opencontainers/runc/libcontainer/utils 0.003s
Makefile:71: recipe for target 'localunittest' failed
make: *** [localunittest] Error 1
The same error can be reproduced using
make test
.Environment:
Since the test is done in the docker environment, I think the only things matter is the host machine.
distribution
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
kernel
Linux m 3.13.0-35-generic spec: Add Network and Route structs #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
docker -v
Docker version 1.11.2, build b9f10c9
The text was updated successfully, but these errors were encountered: