Don't output FAIL if the actual failure is 0 for Fedora CI
This commit is contained in:
parent
c62f730d73
commit
e3157fe4b6
@ -1,6 +1,6 @@
|
|||||||
From ec6b251149bb5ca79c73f7bdbded55d72a44b3a1 Mon Sep 17 00:00:00 2001
|
From b3b90f0e467ade81165d67638ca7c2541963a879 Mon Sep 17 00:00:00 2001
|
||||||
From: fujiwarat <takao.fujiwara1@gmail.com>
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
||||||
Date: Sat, 20 Mar 2021 11:40:50 +0900
|
Date: Sat, 20 Mar 2021 20:28:42 +0900
|
||||||
Subject: [PATCH] src/tests: Change default session gnome-session to mutter
|
Subject: [PATCH] src/tests: Change default session gnome-session to mutter
|
||||||
|
|
||||||
gnome-shell 40 now shows the overview mode by login and
|
gnome-shell 40 now shows the overview mode by login and
|
||||||
@ -9,13 +9,18 @@ Now the default session is changed to mutter from gnome-session.
|
|||||||
The default may be changed to twm if mutter also will be changed
|
The default may be changed to twm if mutter also will be changed
|
||||||
not to accept the application focus in the future.
|
not to accept the application focus in the future.
|
||||||
|
|
||||||
|
Disable Tour dialog which prevent test application from getting the
|
||||||
|
input focus.
|
||||||
|
|
||||||
|
Don't output FAIL if the actual failure is 0 for Fedora CI.
|
||||||
|
|
||||||
BUG=https://discourse.gnome.org/t/focus-on-autostart-application-by-login/5863
|
BUG=https://discourse.gnome.org/t/focus-on-autostart-application-by-login/5863
|
||||||
---
|
---
|
||||||
src/tests/ibus-desktop-testing-runner.in | 22 ++++++++++++++++++----
|
src/tests/ibus-desktop-testing-runner.in | 31 +++++++++++++++++++-----
|
||||||
1 file changed, 18 insertions(+), 4 deletions(-)
|
1 file changed, 25 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/tests/ibus-desktop-testing-runner.in b/src/tests/ibus-desktop-testing-runner.in
|
diff --git a/src/tests/ibus-desktop-testing-runner.in b/src/tests/ibus-desktop-testing-runner.in
|
||||||
index 4232c549..92ae14ba 100755
|
index 4232c549..23e3411e 100755
|
||||||
--- a/src/tests/ibus-desktop-testing-runner.in
|
--- a/src/tests/ibus-desktop-testing-runner.in
|
||||||
+++ b/src/tests/ibus-desktop-testing-runner.in
|
+++ b/src/tests/ibus-desktop-testing-runner.in
|
||||||
@@ -4,7 +4,7 @@
|
@@ -4,7 +4,7 @@
|
||||||
@ -82,6 +87,22 @@ index 4232c549..92ae14ba 100755
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -360,8 +374,13 @@ EOF_RUNNER
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo ""
|
||||||
|
- print_log -e "${GREEN}PASS${NC}: $pass"
|
||||||
|
- print_log -e "${RED}FAIL${NC}: $fail"
|
||||||
|
+ # Fedora CI assumes the test is failed even if $fail is 0.
|
||||||
|
+ if [ $pass -ne 0 ] ; then
|
||||||
|
+ print_log -e "${GREEN}PASS${NC}: $pass"
|
||||||
|
+ fi
|
||||||
|
+ if [ $fail -ne 0 ] ; then
|
||||||
|
+ print_log -e "${RED}FAIL${NC}: $fail"
|
||||||
|
+ fi
|
||||||
|
echo ""
|
||||||
|
if [ $TEST_LOG_STDOUT -eq 1 ] ; then
|
||||||
|
cat $TEST_LOG
|
||||||
--
|
--
|
||||||
2.28.0
|
2.28.0
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
Name: ibus
|
Name: ibus
|
||||||
Version: 1.5.24
|
Version: 1.5.24
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Intelligent Input Bus for Linux OS
|
Summary: Intelligent Input Bus for Linux OS
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/ibus/%name/wiki
|
URL: https://github.com/ibus/%name/wiki
|
||||||
@ -488,6 +488,9 @@ dconf update || :
|
|||||||
%{_datadir}/installed-tests/ibus
|
%{_datadir}/installed-tests/ibus
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 20 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.24-3
|
||||||
|
- Don't output FAIL if the actual failure is 0 for Fedora CI
|
||||||
|
|
||||||
* Sat Mar 20 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.24-2
|
* Sat Mar 20 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.24-2
|
||||||
- Change default session to mutter from gnome in desktop-testing
|
- Change default session to mutter from gnome in desktop-testing
|
||||||
|
|
||||||
|
@ -76,30 +76,35 @@
|
|||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
status="PASS: frame"
|
status="PASS: frame"
|
||||||
fi
|
fi
|
||||||
echo "${status} $TEST" >> {{ remote_artifacts }}/test.log
|
echo "${status}" >> {{ remote_artifacts }}/test.log
|
||||||
|
echo "#### {{ remote_artifacts }}/{{ installed_test_name }}.log"
|
||||||
|
if [ -f {{ remote_artifacts }}/{{ installed_test_name }}.log ] ; then
|
||||||
|
cat {{ remote_artifacts }}/{{ installed_test_name }}.log
|
||||||
|
fi
|
||||||
|
echo "#"
|
||||||
|
echo "#### {{ remote_artifacts }}/test.log"
|
||||||
|
if [ -f {{ remote_artifacts }}/test.log ] ; then
|
||||||
|
cat {{ remote_artifacts }}/test.log
|
||||||
|
fi
|
||||||
|
echo "#"
|
||||||
|
|
||||||
- name: Check the results
|
- name: Check the results
|
||||||
shell: |
|
shell: |
|
||||||
IS_RAWHIDE=`grep -i rawhide /etc/fedora-release`
|
IS_RAWHIDE=`grep -i rawhide /etc/fedora-release`
|
||||||
if [ x"$IS_RAWHIDE" != x ] ; then
|
if [ x"$IS_RAWHIDE" != x ] ; then
|
||||||
echo PASS
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
log="{{ remote_artifacts }}/test.log"
|
log="{{ remote_artifacts }}/test.log"
|
||||||
if [ ! -f $log ] ; then
|
if [ ! -f $log ] ; then
|
||||||
echo ERROR
|
echo ERROR
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
FAIL=`grep "^FAIL: " $log | grep -v 'FAIL: 0$'`
|
FAIL=`grep "^FAIL: " $log | grep -v 'FAIL: 0$'`
|
||||||
if [ x"$FAIL" != x ] ; then
|
if [ x"$FAIL" != x ] ; then
|
||||||
echo ERROR
|
echo ERROR
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo PASS
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
register: test_fails
|
register: test_fails
|
||||||
#failed_when: False
|
failed_when: False
|
||||||
|
|
||||||
- name: Set role result
|
- name: Set role result
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user