Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #143 from giubacc/build-capture-tests
Browse files Browse the repository at this point in the history
rgw/sfs: fix build-radosgw.sh not compiling sfs unittests
  • Loading branch information
Giuseppe Baccini authored Apr 27, 2023
2 parents 70da1bc + 31abb05 commit 7fd738f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qa/rgw/store/sfs/build-radosgw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ _build() {
if [ "${WITH_TESTS}" == "ON" ] ; then
# discover tests from build.ninja so we don't need to update this after
# adding a new unit test
# SFS unittests should be named unittest_rgw_sfs*
# SFS unittests should be named unittest_rgw_sfs_*
# SFS unittests should be named unittest_rgw_s3gw_*
IFS=" " read -r -a \
UNIT_TESTS <<< "$(awk '/build unittest_rgw_(sfs|s3gw)/ {
print $4
}' build.ninja)"
UNIT_TESTS <<< "$(grep -E "build unittest_rgw_sfs_|build unittest_rgw_s3gw_" build.ninja \
| awk 'BEGIN {ORS=" "}; {print $4}')"
ninja -j "${NPROC}" "${UNIT_TESTS[@]}"
fi

Expand Down

0 comments on commit 7fd738f

Please sign in to comment.