selftests/filesystems: Add six consecutive 'x' characters to mktemp
authorHui Min Mina Chou <minachou@andestech.com>
Tue, 18 Jul 2023 03:43:51 +0000 (11:43 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 16 Aug 2023 16:10:39 +0000 (10:10 -0600)
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>
tools/testing/selftests/filesystems/fat/run_fat_tests.sh

index 7f35dc3..d61264d 100755 (executable)
@@ -12,7 +12,7 @@ set -u
 set -o pipefail
 
 BASE_DIR="$(dirname $0)"
-TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXX)"
+TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXXXX)"
 IMG_PATH="${TMP_DIR}/fat.img"
 MNT_PATH="${TMP_DIR}/mnt"