[Notes] [Git][BuildStream/buildstream][bschubert/dont-cache-errors-from-host-tools] fixup! Don't cache sandbox errors



Title: GitLab

Benjamin Schubert pushed to branch bschubert/dont-cache-errors-from-host-tools at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • tests/integration/cachedfail.py
    ... ... @@ -4,6 +4,8 @@ import pytest
    4 4
     from buildstream import _yaml
    
    5 5
     from buildstream._exceptions import ErrorDomain
    
    6 6
     
    
    7
    +from conftest import clean_platform_cache
    
    8
    +
    
    7 9
     from tests.testutils import cli_integration as cli, create_artifact_share
    
    8 10
     from tests.testutils.site import IS_LINUX
    
    9 11
     
    
    ... ... @@ -187,6 +189,9 @@ def test_host_tools_errors_are_not_cached(cli, tmpdir, datafiles):
    187 189
         result1 = cli.run(project=project, args=['build', 'element.bst'], env={'PATH': ''})
    
    188 190
         result1.assert_task_error(ErrorDomain.SANDBOX, 'unavailable-local-sandbox')
    
    189 191
     
    
    192
    +    # clean the cache before running again
    
    193
    +    clean_platform_cache()
    
    194
    +
    
    190 195
         # When rebuilding, this should work
    
    191 196
         result2 = cli.run(project=project, args=['build', 'element.bst'])
    
    192 197
         result2.assert_success()



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]