[Notes] [Git][BuildStream/buildstream][master] 3 commits: tests/integration/shell.py: Skip test_isolated_no_mount without sandbox



Title: GitLab

Jürg Billeter pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • tests/integration/shell.py
    ... ... @@ -212,6 +212,7 @@ def test_host_files_expand_environ(cli, tmpdir, datafiles, path):
    212 212
     # Test that bind mounts defined in project.conf dont mount in isolation
    
    213 213
     @pytest.mark.parametrize("path", [("/etc/pony.conf"), ("/usr/share/pony/pony.txt")])
    
    214 214
     @pytest.mark.datafiles(DATA_DIR)
    
    215
    +@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox')
    
    215 216
     def test_isolated_no_mount(cli, tmpdir, datafiles, path):
    
    216 217
         project = os.path.join(datafiles.dirname, datafiles.basename)
    
    217 218
         ponyfile = os.path.join(project, 'files', 'shell-mount', 'pony.txt')
    
    ... ... @@ -226,6 +227,8 @@ def test_isolated_no_mount(cli, tmpdir, datafiles, path):
    226 227
             }
    
    227 228
         })
    
    228 229
         assert result.exit_code != 0
    
    230
    +    assert path in result.stderr
    
    231
    +    assert 'No such file or directory' in result.stderr
    
    229 232
     
    
    230 233
     
    
    231 234
     # Test that we warn about non-existing files on the host if the mount is not
    



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