Skip to content

Commit 31e3678

Browse files
xz-devNowa-Ammerlaan
authored andcommitted
Dockerfile: remove LOCAL_TEST env
1 parent 082566b commit 31e3678

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ RUN echo -e "sys-kernel/installkernel systemd -dracut -grub -systemd-boot -uki -
77
RUN echo -e "sys-kernel/installkernel **" >> /etc/portage/package.accept_keywords/installkernel
88
RUN emerge --jobs="$(nproc)" --load-average="$(nproc)" sys-kernel/gentoo-kernel-bin app-text/tree app-text/asciidoc sys-apps/systemd sys-kernel/dracut sys-boot/grub sys-kernel/installkernel sys-fs/dosfstools sys-boot/refind app-alternatives/sh
99

10-
ENV LOCAL_TEST=1
1110
CMD /tmp/installkernel-gentoo-9999/run_tests.sh

installkernel-9999.ebuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ HOMEPAGE="
1414
if [[ ${PV} == 9999 ]]; then
1515
inherit git-r3
1616
EGIT_REPO_URI="https://github.com/projg2/installkernel-gentoo.git"
17-
[[ -n ${LOCAL_TEST} ]] && EGIT_REPO_URI="file:///tmp/installkernel-gentoo-9999/"
1817
else
1918
SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
2019
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"

run_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
cd /tmp || exit 1
55

66
cp /tmp/installkernel-gentoo-9999/installkernel-9999.ebuild /var/db/repos/gentoo/sys-kernel/installkernel/installkernel-9999.ebuild || exit 1
7-
ls -la /tmp/installkernel-gentoo-9999/ || exit 1
7+
8+
# Modify EGIT_REPO_URI to use local path instead of GitHub
9+
sed -i 's|EGIT_REPO_URI="https://github.com/projg2/installkernel-gentoo.git"|EGIT_REPO_URI="file:///tmp/installkernel-gentoo-9999/"|' /var/db/repos/gentoo/sys-kernel/installkernel/installkernel-9999.ebuild || exit 1
810

911
INST_KERN="$(ls /boot/kernel*-gentoo-dist* || exit 1)"
1012
INST_KV_FULL="${INST_KERN#/boot/kernel-}"

0 commit comments

Comments
 (0)