Page MenuHomeSoftware Heritage

swh.loader.tests: Use snapshot_get_all_branches in check_snapshot
ClosedPublic

Authored by ardumont on Aug 7 2020, 9:59 PM.

Details

Summary

This migrates to stop using old snapshot-get.
This allows to use more Snapshot objects for checks!

This also fixes build [1]

[1] https://jenkins.softwareheritage.org/job/DLDBASE/job/tests/1035/console

Test Plan

tox

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3744 (id=13187)

Rebasing onto 57d3e372fa...

Current branch diff-target is up to date.
Changes applied before test
commit d9e4365f6f2998354c3128f1a69e014da8976ed8
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Aug 7 21:45:15 2020 +0200

    swh.loader.tests: Use snapshot_get_all_branches in check_snapshot
    
    Fixes build [1]
    
    [1] https://jenkins.softwareheritage.org/job/DLDBASE/job/tests/1035/console

See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/267/ for more details.

This revision is now accepted and ready to land.Aug 7 2020, 10:02 PM