Skip to content

Commit 63259ec

Browse files
Juerg Haefliger via ltppevik
authored andcommitted
mkdir_tests.sh: Handle error message from mkdir from rust coreutils
mkdir from rust coreutils doesn't print the directory path. Account for that. Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Juerg Haefliger <[email protected]>
1 parent c8f3d18 commit 63259ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testcases/commands/mkdir/mkdir_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ test2()
3434

3535
if grep -q "$LONG_PATH.*No such file or directory" mkdir.out; then
3636
tst_res TPASS "Got correct error message"
37+
elif grep -q "mkdir: No such file or directory" mkdir.out; then
38+
# mkdir from rust coreutils doesn't print the directory path
39+
tst_res TPASS "Got correct error message"
3740
else
3841
tst_res TFAIL "Got wrong error message"
3942
cat mkdir.out

0 commit comments

Comments
 (0)