[arch-projects] [dbscripts] [PATCH 3/8] Export TMPDIR, and use mktemp -t instead of making it part of the template
Eli Schwartz
eschwartz at archlinux.org
Wed Mar 14 11:23:15 UTC 2018
On 03/13/2018 09:52 PM, Luke Shumaker wrote:
> From: Luke Shumaker <lukeshu at parabola.nu>
> diff --git a/test/cases/db-update.bats b/test/cases/db-update.bats
> index e7e4489..2e44b91 100644
> --- a/test/cases/db-update.bats
> +++ b/test/cases/db-update.bats
> @@ -222,7 +222,7 @@ load ../lib/common
>
> @test "package has to be aregular file" {
> local p
> - local target=$(mktemp -d)
> + local target=$(mktemp -dt)
> local arches=('i686' 'x86_64')
>
> releasePackage extra 'pkg-simple-a'
> diff --git a/test/lib/common.bash b/test/lib/common.bash
> index 568a541..45e4800 100644
> --- a/test/lib/common.bash
> +++ b/test/lib/common.bash
> @@ -83,7 +83,7 @@ setup() {
> local a
> PKGEXT=".pkg.tar.xz"
>
> - TMP="$(mktemp -d)"
> + TMP="$(mktemp -dt)"
>
> export DBSCRIPTS_CONFIG=${TMP}/config.local
> cat <<eot > "${DBSCRIPTS_CONFIG}"
>
These two have no TEMPLATE given anyways, so this change is extraneous.
--
Eli Schwartz
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20180314/9284d2ef/attachment.asc>
More information about the arch-projects
mailing list