Skip to content
  • Cédric Le Ninivin's avatar
    testing/testcase: make nxdbom optional in generate_sbom · afa42a7c
    Cédric Le Ninivin authored and Cédric Le Ninivin's avatar Cédric Le Ninivin committed
    generate_sbom runs the "nxdbom" executable, looked up on PATH. When it is
    not installed the subprocess raises FileNotFoundError and setUpModule
    crashes, erroring out every test in the module. This affects local
    checkouts and CI runners built without the nxdbom component.
    
    Declare nxdbom in the 'testing' extras, so anyone installing
    slapos.core[testing] (software release tests) gets it and the executable
    is always present.
    
    /reviewed-on !907
    afa42a7c