Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/filesystems: Add six consecutive 'x' characters to mktemp

In busybox, the mktemp requires that the generated filename be
suffixed with at least six consecutive 'X' characters. Otherwise,
it will return an "Invalid argument" error.

Signed-off-by: Hui Min Mina Chou <minachou@andestech.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Hui Min Mina Chou and committed by
Shuah Khan
1e9519b6 2b2fe605

+1 -1
+1 -1
tools/testing/selftests/filesystems/fat/run_fat_tests.sh
··· 12 12 set -o pipefail 13 13 14 14 BASE_DIR="$(dirname $0)" 15 - TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXX)" 15 + TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXXXX)" 16 16 IMG_PATH="${TMP_DIR}/fat.img" 17 17 MNT_PATH="${TMP_DIR}/mnt" 18 18