Created
August 8, 2016 10:57
-
-
Save IlyaSemenov/1c2f308e8ab1a388ea8951453e583804 to your computer and use it in GitHub Desktop.
sshcommand make test-in-docker fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make test-in-docker | |
make build-test-container | |
make[1]: Entering directory '/root/sshcommand' | |
building test container... | |
docker build -t sshcommand_test -f Dockerfile.test . | |
Sending build context to Docker daemon 129.5 kB | |
Step 1 : FROM gcc:latest | |
latest: Pulling from library/gcc | |
357ea8c3d80b: Pull complete | |
52befadefd24: Pull complete | |
3c0732d5313c: Pull complete | |
ceb711c7e301: Pull complete | |
dc6e8c0b4daa: Pull complete | |
ffc96de8e06a: Pull complete | |
1e8f211ee864: Pull complete | |
0e13bb188f33: Pull complete | |
Digest: sha256:3a2a713e1abb9d5753d15b5cca5ed7364b1ad7239862316c3dacd3308a6495f0 | |
Status: Downloaded newer image for gcc:latest | |
---> d8448d25789a | |
Step 2 : ENV DEBIAN_FRONTEND noninteractive | |
---> Running in f8dfed5e9c88 | |
---> 1bb3cb3b9681 | |
Removing intermediate container f8dfed5e9c88 | |
Step 3 : ENV DEBCONF_NONINTERACTIVE_SEEN true | |
---> Running in 22d53f1cf3ef | |
---> 6502c1362366 | |
Removing intermediate container 22d53f1cf3ef | |
Step 4 : RUN apt-get update && apt-get install -qq -y software-properties-common sudo | |
---> Running in 000a43fc9f60 | |
Ign http://httpredir.debian.org jessie InRelease | |
Get:1 http://httpredir.debian.org jessie-updates InRelease [142 kB] | |
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB] | |
Get:3 http://httpredir.debian.org jessie Release.gpg [2373 B] | |
Get:4 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB] | |
Get:5 http://httpredir.debian.org jessie Release [148 kB] | |
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [382 kB] | |
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9032 kB] | |
Fetched 9788 kB in 2s (3754 kB/s) | |
Reading package lists... | |
debconf: delaying package configuration, since apt-utils is not installed | |
Selecting previously unselected package libapt-inst1.5:amd64. | |
(Reading database ... 21094 files and directories currently installed.) | |
Preparing to unpack .../libapt-inst1.5_1.0.9.8.3_amd64.deb ... | |
Unpacking libapt-inst1.5:amd64 (1.0.9.8.3) ... | |
Selecting previously unselected package libcap-ng0:amd64. | |
Preparing to unpack .../libcap-ng0_0.7.4-2_amd64.deb ... | |
Unpacking libcap-ng0:amd64 (0.7.4-2) ... | |
Selecting previously unselected package libdbus-1-3:amd64. | |
Preparing to unpack .../libdbus-1-3_1.8.20-0+deb8u1_amd64.deb ... | |
Unpacking libdbus-1-3:amd64 (1.8.20-0+deb8u1) ... | |
Selecting previously unselected package libdbus-glib-1-2:amd64. | |
Preparing to unpack .../libdbus-glib-1-2_0.102-1_amd64.deb ... | |
Unpacking libdbus-glib-1-2:amd64 (0.102-1) ... | |
Selecting previously unselected package libmpdec2:amd64. | |
Preparing to unpack .../libmpdec2_2.4.1-1_amd64.deb ... | |
Unpacking libmpdec2:amd64 (2.4.1-1) ... | |
Selecting previously unselected package libpython3.4-minimal:amd64. | |
Preparing to unpack .../libpython3.4-minimal_3.4.2-1_amd64.deb ... | |
Unpacking libpython3.4-minimal:amd64 (3.4.2-1) ... | |
Selecting previously unselected package libpython3.4-stdlib:amd64. | |
Preparing to unpack .../libpython3.4-stdlib_3.4.2-1_amd64.deb ... | |
Unpacking libpython3.4-stdlib:amd64 (3.4.2-1) ... | |
Selecting previously unselected package python3.4-minimal. | |
Preparing to unpack .../python3.4-minimal_3.4.2-1_amd64.deb ... | |
Unpacking python3.4-minimal (3.4.2-1) ... | |
Selecting previously unselected package apt-utils. | |
Preparing to unpack .../apt-utils_1.0.9.8.3_amd64.deb ... | |
Unpacking apt-utils (1.0.9.8.3) ... | |
Selecting previously unselected package init-system-helpers. | |
Preparing to unpack .../init-system-helpers_1.22_all.deb ... | |
Unpacking init-system-helpers (1.22) ... | |
Selecting previously unselected package dbus. | |
Preparing to unpack .../dbus_1.8.20-0+deb8u1_amd64.deb ... | |
Unpacking dbus (1.8.20-0+deb8u1) ... | |
Selecting previously unselected package python3.4. | |
Preparing to unpack .../python3.4_3.4.2-1_amd64.deb ... | |
Unpacking python3.4 (3.4.2-1) ... | |
Selecting previously unselected package python3-minimal. | |
Preparing to unpack .../python3-minimal_3.4.2-2_amd64.deb ... | |
Unpacking python3-minimal (3.4.2-2) ... | |
Selecting previously unselected package libpython3-stdlib:amd64. | |
Preparing to unpack .../libpython3-stdlib_3.4.2-2_amd64.deb ... | |
Unpacking libpython3-stdlib:amd64 (3.4.2-2) ... | |
Selecting previously unselected package python3. | |
Preparing to unpack .../python3_3.4.2-2_amd64.deb ... | |
Unpacking python3 (3.4.2-2) ... | |
Selecting previously unselected package dh-python. | |
Preparing to unpack .../dh-python_1.20141111-2_all.deb ... | |
Unpacking dh-python (1.20141111-2) ... | |
Selecting previously unselected package iso-codes. | |
Preparing to unpack .../iso-codes_3.57-1_all.deb ... | |
Unpacking iso-codes (3.57-1) ... | |
Selecting previously unselected package lsb-release. | |
Preparing to unpack .../lsb-release_4.1+Debian13+nmu1_all.deb ... | |
Unpacking lsb-release (4.1+Debian13+nmu1) ... | |
Selecting previously unselected package python-apt-common. | |
Preparing to unpack .../python-apt-common_0.9.3.12_all.deb ... | |
Unpacking python-apt-common (0.9.3.12) ... | |
Selecting previously unselected package python3-apt. | |
Preparing to unpack .../python3-apt_0.9.3.12_amd64.deb ... | |
Unpacking python3-apt (0.9.3.12) ... | |
Selecting previously unselected package python3-dbus. | |
Preparing to unpack .../python3-dbus_1.2.0-2+b3_amd64.deb ... | |
Unpacking python3-dbus (1.2.0-2+b3) ... | |
Selecting previously unselected package python3-gi. | |
Preparing to unpack .../python3-gi_3.14.0-1_amd64.deb ... | |
Unpacking python3-gi (3.14.0-1) ... | |
Selecting previously unselected package unattended-upgrades. | |
Preparing to unpack .../unattended-upgrades_0.83.3.2+deb8u1_all.deb ... | |
Unpacking unattended-upgrades (0.83.3.2+deb8u1) ... | |
Selecting previously unselected package python3-software-properties. | |
Preparing to unpack .../python3-software-properties_0.92.25debian1_all.deb ... | |
Unpacking python3-software-properties (0.92.25debian1) ... | |
Selecting previously unselected package software-properties-common. | |
Preparing to unpack .../software-properties-common_0.92.25debian1_all.deb ... | |
Unpacking software-properties-common (0.92.25debian1) ... | |
Selecting previously unselected package sudo. | |
Preparing to unpack .../sudo_1.8.10p3-1+deb8u3_amd64.deb ... | |
Unpacking sudo (1.8.10p3-1+deb8u3) ... | |
Processing triggers for systemd (215-17+deb8u4) ... | |
Processing triggers for mime-support (3.58) ... | |
Setting up libapt-inst1.5:amd64 (1.0.9.8.3) ... | |
Setting up libcap-ng0:amd64 (0.7.4-2) ... | |
Setting up libdbus-1-3:amd64 (1.8.20-0+deb8u1) ... | |
Setting up libdbus-glib-1-2:amd64 (0.102-1) ... | |
Setting up libmpdec2:amd64 (2.4.1-1) ... | |
Setting up libpython3.4-minimal:amd64 (3.4.2-1) ... | |
Setting up libpython3.4-stdlib:amd64 (3.4.2-1) ... | |
Setting up python3.4-minimal (3.4.2-1) ... | |
Setting up apt-utils (1.0.9.8.3) ... | |
Setting up init-system-helpers (1.22) ... | |
Setting up dbus (1.8.20-0+deb8u1) ... | |
invoke-rc.d: policy-rc.d denied execution of start. | |
Setting up python3.4 (3.4.2-1) ... | |
Setting up python3-minimal (3.4.2-2) ... | |
Setting up libpython3-stdlib:amd64 (3.4.2-2) ... | |
Setting up iso-codes (3.57-1) ... | |
Setting up lsb-release (4.1+Debian13+nmu1) ... | |
Setting up python-apt-common (0.9.3.12) ... | |
Setting up sudo (1.8.10p3-1+deb8u3) ... | |
Setting up dh-python (1.20141111-2) ... | |
Setting up python3 (3.4.2-2) ... | |
Setting up python3-apt (0.9.3.12) ... | |
Setting up python3-dbus (1.2.0-2+b3) ... | |
Setting up python3-gi (3.14.0-1) ... | |
Setting up unattended-upgrades (0.83.3.2+deb8u1) ... | |
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults | |
Setting up python3-software-properties (0.92.25debian1) ... | |
Setting up software-properties-common (0.92.25debian1) ... | |
Processing triggers for libc-bin (2.19-18+deb8u4) ... | |
/sbin/ldconfig.real: /usr/local/lib64/libstdc++.so.6.0.22-gdb.py is not an ELF file - it has the wrong magic bytes at the start. | |
Processing triggers for systemd (215-17+deb8u4) ... | |
Processing triggers for dbus (1.8.20-0+deb8u1) ... | |
---> 9050a12b6cf0 | |
Removing intermediate container 000a43fc9f60 | |
Step 5 : ADD . /app | |
---> 7aa356751c01 | |
Removing intermediate container 4cdce76ce2c3 | |
Step 6 : WORKDIR /app | |
---> Running in cebd4c85d200 | |
---> 86aa581081e4 | |
Removing intermediate container cebd4c85d200 | |
Step 7 : RUN make -e ci-dependencies | |
---> Running in 15a792a753ea | |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | |
sudo apt-get update && sudo -E apt-get install -y -qq shellcheck | |
Hit http://security.debian.org jessie/updates InRelease | |
Ign http://httpredir.debian.org jessie InRelease | |
Get:1 http://archive.ubuntu.com trusty-backports InRelease [65.9 kB] | |
Hit http://httpredir.debian.org jessie-updates InRelease | |
Hit http://httpredir.debian.org jessie Release.gpg | |
Ign http://archive.ubuntu.com trusty-backports InRelease | |
Hit http://httpredir.debian.org jessie Release | |
Get:2 http://security.debian.org jessie/updates/main amd64 Packages [382 kB] | |
Get:3 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB] | |
Get:4 http://archive.ubuntu.com trusty-backports/main amd64 Packages [14.8 kB] | |
Get:5 http://httpredir.debian.org jessie/main amd64 Packages [9032 kB] | |
Get:6 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [40 B] | |
Get:7 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [52.6 kB] | |
Get:8 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1396 B] | |
Fetched 9567 kB in 2s (3659 kB/s) | |
Reading package lists... | |
W: GPG error: http://archive.ubuntu.com trusty-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 | |
Selecting previously unselected package shellcheck. | |
(Reading database ... 23058 files and directories currently installed.) | |
Preparing to unpack .../shellcheck_0.3.4-3_amd64.deb ... | |
Unpacking shellcheck (0.3.4-3) ... | |
Setting up shellcheck (0.3.4-3) ... | |
sudo mkdir -p /usr/local | |
git clone https://github.com/sstephenson/bats.git /tmp/bats | |
Cloning into '/tmp/bats'... | |
cd /tmp/bats && sudo ./install.sh /usr/local | |
Installed Bats to /usr/local/bin/bats | |
rm -rf /tmp/bats | |
---> ef70bed1a0ca | |
Removing intermediate container 15a792a753ea | |
Successfully built ef70bed1a0ca | |
make[1]: Leaving directory '/root/sshcommand' | |
docker run -ti --rm -v /root/sshcommand:/app -w /app --hostname='box223' sshcommand_test make ci-dependencies install test | |
make: Nothing to be done for 'ci-dependencies'. | |
setting up... | |
cp ./sshcommand /usr/local/bin | |
chmod +x /usr/local/bin | |
linting... | |
# SC2034: VAR appears unused - https://github.com/koalaman/shellcheck/wiki/SC2034 | |
# desc is used to declare the description of the function | |
running unit tests... | |
✓ (core) sshcommand create | |
✓ (core) sshcommand acl-add | |
✓ (core) sshcommand acl-add (as argument) | |
✓ (core) sshcommand acl-add (custom allowed keys) | |
✓ (core) sshcommand acl-add (bad key failure) | |
✓ (core) sshcommand acl-add (with identifier space) | |
✓ (core) sshcommand acl-add (duplicate key) | |
✓ (core) sshcommand acl-remove | |
✗ (core) sshcommand list | |
(from function `flunk' in file tests/unit/test_helper.bash, line 14, | |
from function `assert_success' in file tests/unit/test_helper.bash, line 21, | |
in test file tests/unit/core.bats, line 165) | |
`assert_success' failed | |
output: c7:85:4a:ad:6e:a8:24:04:82:c6:21:07:71:ac:c9:ba | |
status: 0 | |
output: c7:85:4a:ad:6e:a8:24:04:82:c6:21:07:71:ac:c9:ba NAME="user1" bash: line 1: c7:85:4a:ad:6e:a8:24:04:82:c6:21:07:71:ac:c9:ba: command not found | |
status: 127 | |
command failed with exit status 127 | |
Looking for files to backup/remove ... | |
Removing files ... | |
Removing user `sshcommand_user' ... | |
Warning: group `sshcommand_user' has no more members. | |
Done. | |
✓ (core) sshcommand help | |
✓ (fn) print-os-id (custom path) | |
✓ (fn) print-os-id (invalid path) | |
12 tests, 1 failure | |
Makefile:40: recipe for target 'unit-tests' failed | |
make: *** [unit-tests] Error 1 | |
Makefile:51: recipe for target 'test-in-docker' failed | |
make: *** [test-in-docker] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment