Skip to content

Makefile: When running multiple tests using RUN, the command fails #156

Description

@HarshwardhanPatil07

When running multiple tests using RUN, the command fails:

make unit V=1 RUN='TestRecordPoolEvents|TestNodeEvent'

The shell treats | as a pipeline instead of passing it to go test.
The error looks like:

bash: TestNodeEvent: command not found
no Go files in the repository directory
make: *** [Makefile:52: unit] Error 127

Escaping the pipe works:

make unit V=1 RUN='TestRecordPoolEvents\|TestNodeEvent'

The Makefile should quote the RUN value so normal Go test regular expressions work without escaping.

Metadata

Metadata

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