test tweaks

This commit is contained in:
Martin Stransky 2021-01-05 18:44:12 +01:00
parent bc34c2ba17
commit f31d3e52b3
2 changed files with 3 additions and 5 deletions

View File

@ -369,7 +369,7 @@ This package contains results of tests executed during build.
%files -n %{testsuite_pkg_name}
/%{version}%-%{release}/test_results
/%{version}%-%{release}/test_summary.txt
/%{version}%-%{release}/test_failures.txt
/%{version}%-%{release}/failures-*
%endif
#---------------------------------------------------------------------
@ -739,8 +739,7 @@ mkdir -p test_results
./run-tests-x11 || true
%endif
./print_results > test_summary.txt 2>&1 || true
./print_failures >> test_summary.txt 2>&1 || true
./print_failures > test_failures.txt 2>&1 || true
./print_failures || true
%endif
#---------------------------------------------------------------------
@ -878,7 +877,7 @@ sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" %{buildroot}/%{moz
%{__mkdir_p} %{buildroot}/%{version}%-%{release}/test_results
%{__cp} test_results/* %{buildroot}/%{version}%-%{release}/test_results
%{__cp} test_summary.txt %{buildroot}/%{version}%-%{release}/
%{__cp} test_failures.txt %{buildroot}/%{version}%-%{release}/
%{__cp} failures-* %{buildroot}/%{version}%-%{release}/ || true
%endif
# Default

View File

@ -3,6 +3,5 @@
export TEST_DIR="test_results"
echo "Test failures"
./perrors $TEST_DIR ""
./perrors $TEST_DIR "-wr"