run-libcore-tests.sh: check for tty am: fcd5a282ce
am: 1eab1671b0

Change-Id: I95d63f88001b7ab6811c64711695cb6fb297bd06