Resolves: RHEL-1616 Add screenshot option in CI #2

This commit is contained in:
Takao Fujiwara 2025-04-15 01:04:10 +09:00
parent f9f518717c
commit 21d7c99c66

View File

@ -1,5 +1,5 @@
--- ibus-1.5.19/src/tests/ibus-desktop-testing-runner.in.orig 2025-04-11 13:28:17.764620101 +0900
+++ ibus-1.5.19/src/tests/ibus-desktop-testing-runner.in 2025-04-12 11:53:57.367461845 +0900
+++ ibus-1.5.19/src/tests/ibus-desktop-testing-runner.in 2025-04-15 01:02:05.501785740 +0900
@@ -43,6 +43,7 @@ SRCDIR="."
TEST_LOG="test-suite.log"
TEST_LOG_STDOUT=0
@ -44,13 +44,12 @@
PID_GNOME_SESSION=$!
sleep 30
HAS_GNOME=`echo $DESKTOP_COMMAND | grep gnome-session`
@@ -373,8 +377,13 @@ EOF_RUNNER
finit()
@@ -374,7 +378,13 @@ finit()
{
echo "# Killing left gnome-session and Xorg"
- kill $PID_GNOME_SESSION $PID_XORG
kill $PID_GNOME_SESSION $PID_XORG
- ibus exit
+ kill $PID_GNOME_SESSION $PID_XORG >&/dev/null
+ wait $PID_GNOME_SESSION $PID_XORG 2>/dev/null
+ PID_IBUS=`pidof ibus-daemon`
+ if test x"$PID_IBUS" != x ; then
+ ibus exit
@ -60,7 +59,7 @@
SUSER=`echo "$USER" | cut -c 1-7`
LEFT_CALENDAR=`ps -ef | grep gnome-shell-calendar-server | grep $SUSER | grep -v grep`
if [ x"$LEFT_CALENDAR" != x ] ; then
@@ -386,14 +395,67 @@ finit()
@@ -386,14 +396,67 @@ finit()
echo "# Finished $PROGNAME testing"
}