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.
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:
Escaping the pipe works:
The Makefile should quote the RUN value so normal Go test regular expressions work without escaping.