• 
      

    Add a testing utility for pre-generating temp directories.

    Review Request #12095 — Created March 1, 2022 and submitted

    Information

    RBTools
    master

    Reviewers

    This introduces TestCase.precreate_tempdirs(), which will pre-create
    the specified number of temp directories, spy on make_tempdir() to
    return them in order, and then immediately return them to the caller.

    This allows unit tests to better work with code paths that make use of
    make_tempdir(), ensuring the right results, and even pre-populating
    files within them.

    Made use of this in unit tests for an in-development SCM.

    Summary ID
    Add a testing utility for pre-generating temp directories.
    This introduces `TestCase.precreate_tempdirs()`, which will pre-create the specified number of temp directories, spy on `make_tempdir()` to return them in order, and then immediately return them to the caller. This allows unit tests to better work with code paths that make use of `make_tempdir()`, ensuring the right results, and even pre-populating files within them.
    58cfe69dfc32208d3e1d2332da3807cfeabcf08a
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.x (3e07094)