Skip to content

Commit 1e9519b

Browse files
Mina-Choushuahkh
authored andcommitted
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>
1 parent 2b2fe60 commit 1e9519b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/filesystems/fat/run_fat_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -u
1212
set -o pipefail
1313

1414
BASE_DIR="$(dirname $0)"
15-
TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXX)"
15+
TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXXXX)"
1616
IMG_PATH="${TMP_DIR}/fat.img"
1717
MNT_PATH="${TMP_DIR}/mnt"
1818

0 commit comments

Comments
 (0)