am 7c386a61: Merge "Extend and document the "wait" command"

* commit '7c386a610d9164c12932452d1ff671e070956ec1':
  Extend and document the "wait" command
This commit is contained in:
Jean-Baptiste Queru 2012-08-20 09:41:53 -07:00 committed by Android Git Automerger
commit 3af04b71e5
2 changed files with 9 additions and 2 deletions

View File

@ -799,6 +799,8 @@ int do_wait(int nargs, char **args)
{
if (nargs == 2) {
return wait_for_file(args[1], COMMAND_RETRY_TIMEOUT);
}
return -1;
} else if (nargs == 3) {
return wait_for_file(args[1], atoi(args[2]));
} else
return -1;
}

View File

@ -207,6 +207,11 @@ trigger <event>
Trigger an event. Used to queue an action from another
action.
wait <path> [ <timeout> ]
Poll for the existence of the given file and return when found,
or the timeout has been reached. If timeout is not specified it
currently defaults to five seconds.
write <path> <string> [ <string> ]*
Open the file at <path> and write one or more strings
to it with write(2)