On Wed, 14 Oct 2026 20:48:25 +0900, Jaewon Jung <[email protected]> wrote: > On the first run, ftracetest tries to unlink a symlink that does not > exist. > Use rm -f to avoid the "No such file or directory" error. > > Fixes: 7dc1e125f07a ("ftrace/selftests: Add softlink to latest log directory") > Signed-off-by: Jaewon Jung <[email protected]>
Looks good to me. Acked-by: Masami Hiramatsu (Google) <[email protected]> Shuah, will you pick this? Thank you, > --- > tools/testing/selftests/ftrace/ftracetest | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/ftrace/ftracetest > b/tools/testing/selftests/ftrace/ftracetest > index 246d7e1d015c..95804610e079 100755 > --- a/tools/testing/selftests/ftrace/ftracetest > +++ b/tools/testing/selftests/ftrace/ftracetest > @@ -243,7 +243,7 @@ else > mkdir -p $LOG_DIR || errexit "Failed to make a log directory: $LOG_DIR" > date > $LOG_FILE > if [ "x-$LINK_PTR" != "x-" ]; then > - unlink $LINK_PTR > + rm -f $LINK_PTR > ln -fs $LOG_DATE $LINK_PTR > fi > fi > -- > 2.43.0 > -- Masami Hiramatsu (Google) <[email protected]>
