Skip to content

[android] adb_test_runner.py pushes file arguments. #19949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

drodriguez
Copy link
Contributor

Some tests need more than just the executable to be pushed. For
example the resilience tests need the executable and the linked
library to be pushed. adb_test_runner.py only pushed the
executable.

The changes look into the arguments passed to the executable
and figure out which ones refer to files. Those files are pushed
to the device and transformed to refer to the path on the device
instead (the resilience test do not actually use the argument
values themselves, but maybe others do).

This PR might conflict with #19940, since both touch the same parts of the file, but both of them are complementary and should work at the same time.

drodriguez added a commit to drodriguez/swift that referenced this pull request Oct 23, 2018
At least test_rth.swift is checking the name of the executable
during the test, so renaming every executable to __executable in
Android will never work.

Also, during the rth tool execution, all the results from before
and after are pushed for every test. Since Android copies the
passed files without relative paths, the library files will
overwrite each other, making the test fail.

Depends on swiftlang#19949 (more or less)
Some tests need more than just the executable to be pushed. For
example the resilience tests need the executable and the linked
library to be pushed. adb_test_runner.py only pushed the
executable.

The changes look into the arguments passed to the executable
and figure out which ones refer to files. Those files are pushed
to the device and transformed to refer to the path on the device
instead (the resilience test do not actually use the argument
values themselves, but maybe others do).
@drodriguez drodriguez force-pushed the android-adb_test_runner-pushes-arguments branch from 91bae15 to bf10e0b Compare October 24, 2018 20:01
@compnerd
Copy link
Member

@swift-ci please test and merge

@drodriguez
Copy link
Contributor Author

I’m quite sure the error in OS X is unrelated. Can we rerun the OS X again?

@compnerd
Copy link
Member

@swift-ci please test macOS platform

@compnerd compnerd merged commit 8828bef into swiftlang:master Oct 30, 2018
@drodriguez drodriguez deleted the android-adb_test_runner-pushes-arguments branch October 30, 2018 17:17
jrose-apple pushed a commit that referenced this pull request Nov 2, 2018
At least test_rth.swift is checking the name of the executable
during the test, so renaming every executable to __executable in
Android will never work.

Also, during the rth tool execution, all the results from before
and after are pushed for every test. Since Android copies the
passed files without relative paths, the library files will
overwrite each other, making the test fail.

Depends on #19949 (more or less)
milseman pushed a commit to milseman/swift that referenced this pull request Nov 4, 2018
…g#19960)

At least test_rth.swift is checking the name of the executable
during the test, so renaming every executable to __executable in
Android will never work.

Also, during the rth tool execution, all the results from before
and after are pushed for every test. Since Android copies the
passed files without relative paths, the library files will
overwrite each other, making the test fail.

Depends on swiftlang#19949 (more or less)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants