diff mbox series

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

Message ID 20230718034351.1373857-1-minachou@andestech.com (mailing list archive)
State Accepted
Headers show
Series selftests/filesystems: Add six consecutive 'x' characters to mktemp | expand

Commit Message

Mina HuiMin-Chou July 18, 2023, 3:43 a.m. UTC
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>
---
 tools/testing/selftests/filesystems/fat/run_fat_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Javier Martinez Canillas July 18, 2023, 6:31 a.m. UTC | #1
Hui Min Mina Chou <minachou@andestech.com> writes:

> 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>
Shuah Khan Aug. 16, 2023, 4:12 p.m. UTC | #2
On 7/18/23 00:31, Javier Martinez Canillas wrote:
> Hui Min Mina Chou <minachou@andestech.com> writes:
> 
>> 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>
> 

Applied to linux-kselftest next for Linux 6.6-rc1.

thanks,
-- Shuah
diff mbox series

Patch

diff --git a/tools/testing/selftests/filesystems/fat/run_fat_tests.sh b/tools/testing/selftests/filesystems/fat/run_fat_tests.sh
index 7f35dc3d15df..d61264d4795d 100755
--- a/tools/testing/selftests/filesystems/fat/run_fat_tests.sh
+++ b/tools/testing/selftests/filesystems/fat/run_fat_tests.sh
@@ -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"