From e860bd172fe0980e558452d4ae9c052eab87ee07 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. LP: #2124984 --- debian/changelog | 7 +++++++ debian/tests/default-bootstraps | 2 ++ 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 68816ce0..ac1d08bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.765.57) UNRELEASED; urgency=medium + + * Cherry-pick fix for autopkgtests from ubuntu/master: (LP: #2124984) + - Add NOW env variable in autopkgtest. + + -- Michael Hudson-Doyle Thu, 23 Oct 2025 12:36:22 +1300 + livecd-rootfs (2.765.56) jammy; urgency=medium * Backporting generation of /etc/cloud/build.info. (LP: #2124984) diff --git a/debian/tests/default-bootstraps b/debian/tests/default-bootstraps index 38ab169c..5006e26c 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 *