Skip to content
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

Allow to record from multiple devices even if they connected at same time #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

caiiiycuk
Copy link
Contributor

Hi. I have a hub of devices that permanently connected. In 0.11.0 it's not possible even to record screenshots in that case. Because DeviceNameCalulator fails to obtain name of device. This simple fix makes record comand work as expected.

Btw, I don't like that run command overwrite generated html, if you run it on multiple devices. I don't fix this code because I think that it can be a breaking change for someone infrastracture, but I hope that in future run command will also support multiple devices.

@facebook-github-bot
Copy link

Hi @caiiiycuk!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@xiphirx xiphirx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize I'm (severely) late in reviewing this, sorry about that (I don't have much time to maintain this repository). I have requested minor changes but completely understand if you don't wish to further this PR.

@@ -20,8 +20,9 @@

class DeviceNameCalculator:

def __init__(self, executor=AdbExecutor()):
def __init__(self, executor=AdbExecutor(), args = []):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of arbitrary args, I think it would be better if we explicitly had a property for the serial no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants