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.
ubuntu-core-desktop-noble
Utkarsh Gupta 9 months ago
parent 5ac0d924ce
commit c86e4eff1a

@ -64,12 +64,14 @@ live_build_rootfs() {
SUBPROJECT=$SUBPROJECT \ SUBPROJECT=$SUBPROJECT \
SUITE=$SUITE \ SUITE=$SUITE \
ARCH=$ARCH \ ARCH=$ARCH \
NOW=$(date '+%Y%m%d') \
lb config lb config
mkdir chroot mkdir chroot
# this part needs root rights, but right now the whole script ran as root by autopkgtest # this part needs root rights, but right now the whole script ran as root by autopkgtest
env PROJECT=$PROJECT \ env PROJECT=$PROJECT \
SUBPROJECT=$SUBPROJECT \ SUBPROJECT=$SUBPROJECT \
ARCH=$ARCH \ ARCH=$ARCH \
NOW=$(date '+%Y%m%d') \
lb build lb build
echo "Build results for project: '$PROJECT' subproject: '$SUBPROJECT' template: '$TEMPLATE' in $PWD" echo "Build results for project: '$PROJECT' subproject: '$SUBPROJECT' template: '$TEMPLATE' in $PWD"
du -sh * du -sh *

Loading…
Cancel
Save