Skip to content

build: make errors that occur in coverage-clean case and coverage-test in Makefile #55288

@kmk324

Description

@kmk324

Version

main

Platform

Linux DESKTOP-1B79QEG 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

build

What steps will reproduce the bug?

$ make coverage-clean

or

$ make coverage-test

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

No make error occurs

$ make coverage-clean
rm -f -r node_modules
rm -f -r gcovr
rm -f -r coverage/tmp

What do you see instead?

$ make coverage-clean
rm -f -r node_modules
rm -f -r gcovr
rm -f -r coverage/tmp
find: missing argument to '-exec'
make: *** [Makefile:244: coverage-clean] Error 1

Additional information

find's -exec option must end with a semicolon,
but in the previous code, depending on the shell, the semicolon was passed to the find command or was passed as the shell's command separator.
With this change, it will work normally in all shell types.

I attached a PR that works normally in my environment. #55287

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions