Skip to content

Commit

Permalink
ci: on debian, default shell is not bash
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos authored and johannbg committed May 3, 2022
1 parent ab798f6 commit 7f7dc91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: all check clean $(wildcard TEST-??-*)

$(wildcard TEST-??-*):
@[ "$$EUID" == "0" ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; }
@[ "$(shell id -u)" = 0 ] || { echo "'check' must be run as root! Please use 'sudo'."; exit 1; }
@{ \
[ -d $@ ] || exit 0; \
[ -f $@/Makefile ] || exit 0; \
Expand Down
7 changes: 6 additions & 1 deletion test/container/Dockerfile-Debian
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ RUN apt-get update -y -qq && apt-get upgrade -y -qq && DEBIAN_FRONTEND=nonintera
docbook \
docbook-xml \
docbook-xsl \
fdisk \
g++ \
git \
iputils-ping \
isc-dhcp-client \
kmod \
less \
libkmod-dev \
linux-image-generic \
lvm2 \
make \
mdadm \
Expand All @@ -40,7 +44,8 @@ RUN apt-get update -y -qq && apt-get upgrade -y -qq && DEBIAN_FRONTEND=nonintera
open-iscsi \
pigz \
pkg-config \
qemu \
procps \
qemu-system-x86 \
quilt \
shellcheck \
squashfs-tools \
Expand Down

0 comments on commit 7f7dc91

Please sign in to comment.