Make audiofuntest's success rate threshold an argument

The threshold was previously hard coded to 50, which is not flexible and
pretty easy to pass. Make it an argument so we can easily adjust it in
the future.

BUG=chrome-os-partner:27853
TEST=Manually tested, the test won't pass after covering with tape on
    the mic

Change-Id: Ib7f961c44aedd83f784321fd91fa530b89ebb3d5
Reviewed-on: https://chromium-review.googlesource.com/195397
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Commit-Queue: Mao Huang <littlecvr@chromium.org>
Tested-by: Mao Huang <littlecvr@chromium.org>
1 file changed