• 
      

    Update rbtools.clients.tests.test_scanning to not use execute().

    Review Request #14481 — Created June 27, 2025 and submitted

    Information

    RBTools
    master

    Reviewers

    The execute() method has been deprecated for a while, but we didn't
    actually do anything about that since the warning was hidden behind an
    environment variable.

    This change updates the rbtools.clients.tests.test_scanning module to
    use run_process() instead, and tweaks our BaseSCMClientTestCase
    definition to allow us to define test cases that use [None] as the
    client (since this test case needs some of the machinery from that but
    doesn't instantiate a specific client class).

    Ran unit tests.

    Summary ID
    Update rbtools.clients.tests.test_scanning to not use execute().
    The `execute()` method has been deprecated for a while, but we didn't actually do anything about that since the warning was hidden behind an environment variable. This change updates the `rbtools.clients.tests.test_scanning` module to use `run_process()` instead, and tweaks our BaseSCMClientTestCase definition to allow us to define test cases that use `[None]` as the client (since this test case needs some of the machinery from that but doesn't instantiate a specific client class). Testing Done: Ran unit tests.
    9260de05adb25a0001c559ba5787725f83b372a8
    Description From Last Updated

    Meant to say: I don't actually see any code in here but typing changes. Nothing involving run_process() or execute().

    chipx86chipx86

    This needs to be Optional[...], since this is going to be executed at runtime. Only 3.10+ supports this.

    chipx86chipx86

    But then this could be | None.

    chipx86chipx86
    chipx86
    1. 
        
    2. rbtools/clients/tests/__init__.py (Diff revision 1)
       
       
      Show all issues

      This needs to be Optional[...], since this is going to be executed at runtime. Only 3.10+ supports this.

    3. rbtools/clients/tests/__init__.py (Diff revision 1)
       
       
      Show all issues

      But then this could be | None.

    4. 
        
    chipx86
    1. 
        
    2. Show all issues

      Meant to say: I don't actually see any code in here but typing changes. Nothing involving run_process() or execute().

      1. The test_scanning.py file has the execute-related changes.

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (8ea5353)