android/tester-ng: Verify action results also for success case

Case when we were expecting fail as action result but we got success was
not caught.
This commit is contained in:
Jakub Tyszkowski 2014-07-15 10:24:53 +02:00 committed by Szymon Janc
parent ca1d84a5f6
commit 9f3048ebdb

View File

@ -404,8 +404,7 @@ static bool match_data(struct step *step)
return false;
}
if (exp->action_result.status && (exp->action_result.status !=
step->action_result.status)) {
if (exp->action_result.status != step->action_result.status) {
tester_debug("Action status don't match");
return false;
}