This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch jmac/cas_to_cas_oct_v2 in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit c996eb7606895caccec558965e8b617b805a6e7d Author: Jim MacArthur <[email protected]> AuthorDate: Fri Oct 5 13:59:34 2018 +0100 virtual_directory_import.py: Check import via a file-based directory --- tests/storage/virtual_directory_import.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/storage/virtual_directory_import.py b/tests/storage/virtual_directory_import.py index 2e5163c..1c78c1b 100644 --- a/tests/storage/virtual_directory_import.py +++ b/tests/storage/virtual_directory_import.py @@ -174,6 +174,12 @@ def test_cas_import(cli, tmpdir, original, overlay): # Note that isdir accepts symlinks to dirs, so a symlink to a dir is acceptable. assert os.path.isdir(realpath) + # Now do the same thing with filebaseddirectories and check the contents match + d3 = create_new_casdir(original, fake_context, tmpdir) + d4 = create_new_filedir(overlay, tmpdir) + d3.import_files(d2) + assert d.ref.hash == d3.ref.hash + @pytest.mark.parametrize("root", [1, 2, 3, 4, 5, 6]) def test_directory_listing(cli, tmpdir, root):
