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