From 3df1bae77453f1326badccc216ffdfd050dd2001 Mon Sep 17 00:00:00 2001
From: Thomas Goirand <zigo@debian.org>
Date: Thu, 12 Dec 2024 15:24:52 +0100
Subject: [PATCH] Add rm -rf {build_dir}/.tmp; in test command (Closes:
 #1089028).

---
 debian/changelog | 3 ++-
 debian/rules     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index de6a62ce..1b5f1056 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,8 @@
-python-django-compressor (4.5.1-3) UNRELEASED; urgency=medium
+python-django-compressor (4.5.1-3) unstable; urgency=medium
 
   * Define explicit debian/tests/control rather than autopkgtest-pkg-pybuild
     in d/control.
+  * Add rm -rf {build_dir}/.tmp; in test command (Closes: #1089028).
 
  -- Thomas Goirand <zigo@debian.org>  Mon, 09 Dec 2024 13:46:34 +0100
 
diff --git a/debian/rules b/debian/rules
index 2b1a1b9a..f0d6df2f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ UPSTREAM_GIT := https://github.com/django-compressor/django-compressor.git
 include /usr/share/openstack-pkg-tools/pkgos.make
 
 export PYBUILD_TEST_CUSTOM = 1
-export PYBUILD_TEST_ARGS = mkdir {build_dir}/.tmp; cp -a {dir}/compressor/tests/static {build_dir}/.tmp/static; env TMP_TEST_DIR={build_dir}/.tmp {interpreter} -m coverage run --branch --source=compressor /usr/bin/django-admin test --settings=compressor.test_settings compressor
+export PYBUILD_TEST_ARGS = rm -rf {build_dir}/.tmp; mkdir {build_dir}/.tmp; cp -a {dir}/compressor/tests/static {build_dir}/.tmp/static; env TMP_TEST_DIR={build_dir}/.tmp {interpreter} -m coverage run --branch --source=compressor /usr/bin/django-admin test --settings=compressor.test_settings compressor
 
 %:
 	dh $@ --buildsystem=pybuild --with python3
-- 
GitLab