Source: binutils-arm-none-eabi Version: 17 Severity: wishlist Tags: patch Dear maintainer,
while testing my fix for #1021193, I ran into an error from autopkgtest
because the home directory of the user running the test was nonexistent
or non-writable.
While debatable whether this is a problem of my autopkgtest
configuration, I'd still like to suggest to use a temporary directory
for that. This will also assert any files created during the are are
purged for sure. See the attached patch.
Regards,
Christoph
commit e60114627b863d32dc6df659171481c91234a657 Author: Christoph Biedl <[email protected]> Date: Sun Oct 16 12:07:47 2022 +0200 Use a temporary directory for autopkgtest diff --git a/debian/tests/build-examples b/debian/tests/build-examples index 5ed0c60..50da512 100644 --- a/debian/tests/build-examples +++ b/debian/tests/build-examples @@ -1,3 +1,8 @@ -cp -aR /usr/share/doc/gcc-arm-none-eabi/ ${HOME} -cd ${HOME}/gcc-arm-none-eabi/examples/src +#!/bin/sh + +temp_dir="$(mktemp --directory --tmpdir "binutils-arm-none-eabi.autopkgtest.$$.XXXXX")" +trap "cd / ; rm -rf \"$temp_dir\"" EXIT + +cp -aR /usr/share/doc/gcc-arm-none-eabi/ ${temp_dir} +cd ${temp_dir}/gcc-arm-none-eabi/examples/src make
signature.asc
Description: PGP signature

