Skip to content

Commit

Permalink
test9
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat committed Jan 31, 2024
1 parent ef5f886 commit 6eecb2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ run_ibus_daemon()
{
ibus-daemon --verbose --panel disable &
sleep 1;
USER=${USER:-`id | sed -e "s/uid=[0-9]*(\([^)]*\)).*/\1/"`};
USER=${USER:-$(id | sed -e "s/uid=[0-9]*(\([^)]*\)).*/\1/")};
USER=`echo "$USER" | cut -c 1-7`;
ps -ef | grep "$USER" | grep ibus | grep -v grep;
}
Expand All @@ -142,8 +142,10 @@ run_test_suite()
env IBUS_ANTHY_ENGINE_PATH=$SRCDIR/../engine/python$i \
IBUS_ANTHY_SETUP_PATH=$SRCDIR/../setup/python$i \
python$i -u $SRCDIR/foo.py $RUN_ARGS;
if test $? -ne 0 ; then
exit -1;
RETVAL=$?
# Return 5 with "NO TESTS RAN" in unittest/runner.py since python 3.12.1
if test $RETVAL -ne 0 && $RETVAL -ne 5; then
exit 1;
fi;
if test x$FORCE_TEST = x ; then
rm -r $HOME/.anthy;
Expand Down

0 comments on commit 6eecb2a

Please sign in to comment.