Fix missing test_failures.txt file

This commit is contained in:
Martin Stransky 2021-01-05 15:40:59 +01:00
parent e8dd3240a4
commit bc34c2ba17
3 changed files with 18 additions and 10 deletions

View File

@ -162,6 +162,7 @@ Source39: perrors
Source40: run-tests-x11 Source40: run-tests-x11
Source41: run-tests-wayland Source41: run-tests-wayland
Source42: psummary Source42: psummary
Source43: print_failures
# Build patches # Build patches
Patch3: mozilla-build-arm.patch Patch3: mozilla-build-arm.patch
@ -368,7 +369,7 @@ This package contains results of tests executed during build.
%files -n %{testsuite_pkg_name} %files -n %{testsuite_pkg_name}
/%{version}%-%{release}/test_results /%{version}%-%{release}/test_results
/%{version}%-%{release}/test_summary.txt /%{version}%-%{release}/test_summary.txt
/%{version}%-%{release}/failures-* /%{version}%-%{release}/test_failures.txt
%endif %endif
#--------------------------------------------------------------------- #---------------------------------------------------------------------
@ -730,7 +731,7 @@ find-links=`pwd`/mochitest-python
no-index=true no-index=true
EOF EOF
tar xf %{SOURCE37} tar xf %{SOURCE37}
cp %{SOURCE40} %{SOURCE41} %{SOURCE42} %{SOURCE38} %{SOURCE39} . cp %{SOURCE40} %{SOURCE41} %{SOURCE42} %{SOURCE38} %{SOURCE39} %{SOURCE43} .
mkdir -p test_results mkdir -p test_results
%if %{test_on_wayland} %if %{test_on_wayland}
./run-tests-wayland || true ./run-tests-wayland || true
@ -738,6 +739,8 @@ mkdir -p test_results
./run-tests-x11 || true ./run-tests-x11 || true
%endif %endif
./print_results > test_summary.txt 2>&1 || true ./print_results > test_summary.txt 2>&1 || true
./print_failures >> test_summary.txt 2>&1 || true
./print_failures > test_failures.txt 2>&1 || true
%endif %endif
#--------------------------------------------------------------------- #---------------------------------------------------------------------
@ -873,9 +876,9 @@ sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" %{buildroot}/%{moz
%if 0%{?run_firefox_tests} %if 0%{?run_firefox_tests}
%{__mkdir_p} %{buildroot}/%{version}%-%{release}/test_results %{__mkdir_p} %{buildroot}/%{version}%-%{release}/test_results
%{__cp} test_results/* %{buildroot}/%{version}%-%{release}/test_results || true %{__cp} test_results/* %{buildroot}/%{version}%-%{release}/test_results
%{__cp} test_summary.txt %{buildroot}/%{version}%-%{release}/ || true %{__cp} test_summary.txt %{buildroot}/%{version}%-%{release}/
%{__cp} failures-*txt %{buildroot}/%{version}%-%{release}/ || true %{__cp} test_failures.txt %{buildroot}/%{version}%-%{release}/
%endif %endif
# Default # Default

8
print_failures Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/bash
# Analyze and print test failures
export TEST_DIR="test_results"
echo "Test failures"
./perrors $TEST_DIR ""
./perrors $TEST_DIR "-wr"

View File

@ -5,9 +5,6 @@ export TEST_DIR="test_results"
echo "Test results" echo "Test results"
echo "Basic compositor" echo "Basic compositor"
./psummary "test_results" "" ./psummary $TEST_DIR ""
echo "WebRender" echo "WebRender"
./psummary "test_results" "-wr" ./psummary $TEST_DIR "-wr"
./perrors "test_results" ""
./perrors "test_results" "-wr"