Skip to content

Commit c1f2e8e

Browse files
committed
specs: Skip the 'check' (test) phase when BUILDER_SKIP_CHECKS is set
1 parent f2c8c68 commit c1f2e8e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

helpers/build-specs.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ function new_rpms {
103103
diff -u /tmp/rpms-before /tmp/rpms-after | tee /tmp/rpms-diff | grep -v '^[+][+]' | grep '^[+]' | sed 's/^[+]//'
104104
}
105105

106+
rpmbuild_options=""
107+
if [ -n "${BUILDER_SKIP_CHECKS}" ]; then
108+
rpmbuild_options="--nocheck"
109+
fi
110+
106111
for spec in "${specs[@]}"; do
107112
echo "==================================================================="
108113
echo "-> $spec"
@@ -123,12 +128,13 @@ for spec in "${specs[@]}"; do
123128

124129
# Download sources
125130
spectool -g -R "$spec"
126-
131+
127132
# Build the rpm and record which files are new
128133
rpm_file_list > /tmp/rpms-before
129134
# NOTE: source_date_epoch_from_changelog is always overridden by SOURCE_DATE_EPOCH if that is set.
130135
# See https://fossies.org/linux/rpm/build/build.c#l_298
131136
rpmbuild \
137+
${rpmbuild_options} \
132138
--define "_sdistdir /sdist" \
133139
--define "_buildhost reproducible" \
134140
--define "source_date_epoch_from_changelog Y" \
@@ -147,4 +153,3 @@ for spec in "${specs[@]}"; do
147153
echo "Skipping spec (BUILDER_SKIP or in cache)"
148154
fi
149155
done
150-

0 commit comments

Comments
 (0)