Skip to content

Commit e2b5dd6

Browse files
authored
Merge pull request #9256 from oech3/gtest-catch-err
build-gnu.sh: Remove || true
2 parents d432131 + e1548c4 commit e2b5dd6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

util/build-gnu.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,8 @@ cd -
132132

133133
# Pass the feature flags to make, which will pass them to cargo
134134
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
135-
touch g
136-
echo "stat with selinux support"
137-
./target/debug/stat -c%C g || true
138-
rm g
135+
# min test for SELinux
136+
[ ${SELINUX_ENABLED} = 1 ] && touch g && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g
139137

140138
cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
141139
# Create *sum binaries

0 commit comments

Comments
 (0)