update mysql5.spec.

Signed-off-by: 陈棋德 <chenqide@kylinos.cn>
(cherry picked from commit 43489b8b5234e52b08524507626fd1e0adee939a)
This commit is contained in:
陈棋德 2024-03-27 08:00:08 +00:00 committed by openeuler-sync-bot
parent 1a67d9bdf7
commit ea96c99bd2

View File

@ -470,27 +470,27 @@ rm %{buildroot}%{_mandir}/man1/mysql_client_test.1*
%endif %endif
%check %check
%if %{with test} #%if %{with test}
%if %runselftest #%if %runselftest
pushd build #pushd build
make test VERBOSE=1 #make test VERBOSE=1
pushd mysql-test #pushd mysql-test
cp ../../mysql-test/%{skiplist} . #cp ../../mysql-test/%{skiplist} .
export MTR_BUILD_THREAD=%{__isa_bits} #export MTR_BUILD_THREAD=%{__isa_bits}
./mtr \ #./mtr \
--mem --parallel=auto --force --retry=2 \ # --mem --parallel=auto --force --retry=2 \
--suite-timeout=720 --testcase-timeout=30 \ # --suite-timeout=720 --testcase-timeout=30 \
--report-unstable-tests --clean-vardir \ # --report-unstable-tests --clean-vardir \
%if %{check_testsuite} #%if %{check_testsuite}
--max-test-fail=0 || : # --max-test-fail=0 || :
%else #%else
--skip-test-list=%{skiplist} # --skip-test-list=%{skiplist}
%endif #%endif
rm -r var $(readlink var) # rm -r var $(readlink var)
popd #popd
popd #popd
%endif #%endif
%endif #%endif
%pre server %pre server
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : /usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :