diff --git a/tests/test_constants.py b/tests/test_constants.py index d2f9ca5..1c193b0 100644 --- a/tests/test_constants.py +++ b/tests/test_constants.py @@ -80,7 +80,7 @@ def test_constants(self): # CMD_CURRENT_APP self.assertCommand( constants.CMD_CURRENT_APP, - r"CURRENT_APP=$(dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp') && CURRENT_APP=${CURRENT_APP#*ActivityRecord{* * } && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && CURRENT_APP=${CURRENT_APP%\}*} && echo $CURRENT_APP", + r"CURRENT_APP=$(dumpsys window windows | grep -E 'Window #1|mCurrentFocus|mFocusedApp') && CURRENT_APP=${CURRENT_APP#*ActivityRecord{* * } && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && CURRENT_APP=${CURRENT_APP%\}*} && echo $CURRENT_APP", ) # CMD_CURRENT_APP11