diff options
author | Jürg Billeter <j@bitron.ch> | 2020-05-11 08:44:42 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-05-27 06:18:41 +0200 |
commit | 9826e115a4bb6f44524145c33f82ca4af13847e3 (patch) | |
tree | b4644984ab887079bdfa7705c03bc1c22b9a0498 /tests/internals | |
parent | 68945dbc7d4d260a4aaf7b671e6458a8b7fb3226 (diff) | |
download | buildstream-9826e115a4bb6f44524145c33f82ca4af13847e3.tar.gz |
Update node property support to match proto changes
Diffstat (limited to 'tests/internals')
-rw-r--r-- | tests/internals/storage.py | 2 | ||||
-rw-r--r-- | tests/internals/storage_vdir_import.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/internals/storage.py b/tests/internals/storage.py index ea3f59b50..e9932e0a4 100644 --- a/tests/internals/storage.py +++ b/tests/internals/storage.py @@ -148,7 +148,7 @@ def test_merge_casdir_properties(tmpdir, datafiles, modification): elif modification == "time": os.utime(os.path.join(after, "root-file"), (200, 200)) - _test_merge_dirs(before, after, buildtree, str(tmpdir), properties=["MTime"]) + _test_merge_dirs(before, after, buildtree, str(tmpdir), properties=["mtime"]) def _test_merge_dirs( diff --git a/tests/internals/storage_vdir_import.py b/tests/internals/storage_vdir_import.py index b302c630e..ffd727ffe 100644 --- a/tests/internals/storage_vdir_import.py +++ b/tests/internals/storage_vdir_import.py @@ -131,7 +131,7 @@ def file_contents_are(path, contents): def create_new_casdir(root_number, cas_cache, tmpdir): d = CasBasedDirectory(cas_cache) - d.import_files(os.path.join(tmpdir, "content", "root{}".format(root_number)), properties=["MTime"]) + d.import_files(os.path.join(tmpdir, "content", "root{}".format(root_number)), properties=["mtime"]) digest = d._get_digest() assert digest.hash != empty_hash_ref return d @@ -199,7 +199,7 @@ def _import_test(tmpdir, original, overlay, generator_function, verify_contents= assert duplicate_cas._get_digest().hash == d._get_digest().hash d2 = create_new_casdir(overlay, cas_cache, tmpdir) - d.import_files(d2, properties=["MTime"]) + d.import_files(d2, properties=["mtime"]) export_dir = os.path.join(tmpdir, "output-{}-{}".format(original, overlay)) roundtrip_dir = os.path.join(tmpdir, "roundtrip-{}-{}".format(original, overlay)) d2.export_files(roundtrip_dir) @@ -238,7 +238,7 @@ def _import_test(tmpdir, original, overlay, generator_function, verify_contents= # Now do the same thing with filebaseddirectories and check the contents match - duplicate_cas.import_files(roundtrip_dir, properties=["MTime"]) + duplicate_cas.import_files(roundtrip_dir, properties=["mtime"]) assert duplicate_cas._get_digest().hash == d._get_digest().hash finally: |