You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:38:46 UTC
[buildstream] 15/20: import_cas.py: check for directories
This is an automated email from the ASF dual-hosted git repository.
root pushed a commit to branch jmac/virtual_directory_tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit a79c425488ff256cb71ab98255ba36e00851cc1b
Author: Jim MacArthur <ji...@codethink.co.uk>
AuthorDate: Mon Sep 17 17:13:01 2018 +0100
import_cas.py: check for directories
---
tests/storage/import_cas.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/storage/import_cas.py b/tests/storage/import_cas.py
index f102b22..6429921 100644
--- a/tests/storage/import_cas.py
+++ b/tests/storage/import_cas.py
@@ -85,3 +85,6 @@ def test_cas_import(cli, tmpdir, roots):
assert os.path.exists(os.path.join(tmpdir, "output", path))
if typename in ['F']:
assert file_contents_are(os.path.join(tmpdir, "output", path), content)
+ if typename in ['D']:
+ # Note that isdir accepts symlinks to dirs, so a symlink to a dir is acceptable.
+ assert os.path.isdir(os.path.join(tmpdir, "output", path))