Make sure we invoke runtest with the same exp filenames when running in
parallel as it will find when run single threaded. When `runtest` finds
files itself, it will use paths like "aarch64/allinsn.exp". When we run
`find .` with the %p option, it produces "./aarch64/allinsn.exp". Switch
to %P to get "aarch64/allinsn.exp".
Bug: https://sourceware.org/PR29596
check-DEJAGNU-parallel:
$(AM_V_at)( \
$(MAKE) -k \
- `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%p '`; \
+ `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%P '`; \
ret=$$?; \
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
`find testsuite/ -maxdepth 4 -name testrun.sum | sort` > testrun.sum; \
check-DEJAGNU-parallel:
$(AM_V_at)( \
$(MAKE) -k \
- `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%p '`; \
+ `cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%P '`; \
ret=$$?; \
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
`find testsuite/ -maxdepth 4 -name testrun.sum | sort` > testrun.sum; \