mirror of
https://tvoygit.ru/Djam/r11-builder-agent.git
synced 2025-02-23 10:22:45 +00:00
more tests
This commit is contained in:
parent
246a2eae5d
commit
c42869f18d
1 changed files with 10 additions and 9 deletions
19
build-rpm.sh
19
build-rpm.sh
|
@ -221,16 +221,17 @@ test_rpm() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '--> Checking if rpm packages can be installed.' >> $test_log
|
echo '--> Checking if rpm packages can be installed.' >> $test_log
|
||||||
$MOCK_BIN -v --init --configdir $config_dir $OUTPUT_FOLDER/*.src.rpm >> "${test_log}".tmp
|
$MOCK_BIN -v --init --configdir $config_dir $OUTPUT_FOLDER/*.src.rpm >> "${test_log}"
|
||||||
$MOCK_BIN -v --init --configdir $config_dir --install $(ls "$OUTPUT_FOLDER"/*.rpm | grep -v .src.rpm) >> "${test_log}".tmp 2>&1
|
$MOCK_BIN -v --init --configdir $config_dir --install $(ls "$OUTPUT_FOLDER"/*.rpm | grep -v .src.rpm) >> "${test_log}" 2>&1
|
||||||
|
|
||||||
cat $test_log.tmp >> $test_log
|
|
||||||
echo '--> Checking if same or newer version of the package already exists in repositories' >> $test_log 2>&1
|
|
||||||
python /mdv/check_newer_versions.py $chroot_path >> $test_log 2>&1
|
|
||||||
test_code=$?
|
test_code=$?
|
||||||
echo "--> Tests finished at `date -u`" >> $test_log
|
if [ $test_code == 0 ]; then
|
||||||
echo 'Test code output: ' $test_code >> $test_log 2>&1
|
cat $test_log.tmp >> $test_log
|
||||||
rm -f $test_log.tmp
|
echo '--> Checking if same or newer version of the package already exists in repositories' >> $test_log 2>&1
|
||||||
|
python /mdv/check_newer_versions.py $chroot_path >> $test_log 2>&1
|
||||||
|
test_code=$?
|
||||||
|
echo "--> Tests finished at `date -u`" >> $test_log
|
||||||
|
echo 'Test code output: ' $test_code >> $test_log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check exit code after testing
|
# Check exit code after testing
|
||||||
if [ $test_code != 0 ]; then
|
if [ $test_code != 0 ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue