A couple of fixes to generate_java_test.py

1. The script crashes if the test directory already exists
2. --u and --i flags are confused: --u generates an instrumentation test
and vice versa.

Change-Id: Id0fff7db865babfe4f72311a196755fcd0f6e852
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1605915
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Pavel Shmakov <pshmakov@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#658896}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b4c153bcd1e8a9f640d0f89125657746539ce768
1 file changed