run tests on the remote device even when the default address is used
When running tests inside the Android emulator, bootstrap doesn't set the TEST_DEVICE_ADDR environment variable, as the default address (127.0.0.1:12345) is used. Instead, REMOTE_TEST_CLIENT is set all the times when remote testing is needed, and in no other cases. To ensure Android tests are executed in the emulator, change the check.
This commit is contained in:
parent
6d8160261f
commit
6bfbd113e2
@ -40,9 +40,9 @@ endif
|
||||
# e.g. for `$(CC) -o $(RUN_BINFILE)`.
|
||||
RUN_BINFILE = $(TMPDIR)/$(1)
|
||||
|
||||
# Invoke the generated binary on the remote machine if a test address is
|
||||
# provided, otherwise run it on the current host.
|
||||
ifdef TEST_DEVICE_ADDR
|
||||
# Invoke the generated binary on the remote machine if compiletest was
|
||||
# configured to use a remote test device, otherwise run it on the current host.
|
||||
ifdef REMOTE_TEST_CLIENT
|
||||
# FIXME: if a test requires additional files, this will need to be changed to
|
||||
# also push them (by changing the 0 to the number of additional files, and
|
||||
# providing the path of the additional files as the last arguments).
|
||||
|
Loading…
Reference in New Issue
Block a user