From c86e4eff1a65113e5273f29ad389f7c9bb395904 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Fri, 15 Mar 2024 14:18:57 +0530 Subject: [PATCH] Add NOW env variable in autopkgtest It was found out that autopkgtests didn't pass the NOW env variable which is generally provided by the launchpad-buildd build and thus the autpkgtests fail. --- debian/tests/default-bootstraps | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/tests/default-bootstraps b/debian/tests/default-bootstraps index b27fd8e0..e5ef020a 100755 --- a/debian/tests/default-bootstraps +++ b/debian/tests/default-bootstraps @@ -64,12 +64,14 @@ live_build_rootfs() { SUBPROJECT=$SUBPROJECT \ SUITE=$SUITE \ ARCH=$ARCH \ + NOW=$(date '+%Y%m%d') \ lb config mkdir chroot # this part needs root rights, but right now the whole script ran as root by autopkgtest env PROJECT=$PROJECT \ SUBPROJECT=$SUBPROJECT \ ARCH=$ARCH \ + NOW=$(date '+%Y%m%d') \ lb build echo "Build results for project: '$PROJECT' subproject: '$SUBPROJECT' template: '$TEMPLATE' in $PWD" du -sh *