[elbe-devel] [PATCH v2 6/9] tests efilesystem: Test bad file for copy_filelist
Olivier Dion
dion at linutronix.de
Mon May 4 20:00:09 CEST 2020
This test for trying to copy none existing files, resulting in a
CommandError.
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/tests/test_efilesystem.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/elbepack/tests/test_efilesystem.py b/elbepack/tests/test_efilesystem.py
index 2a6427d2..81e15087 100644
--- a/elbepack/tests/test_efilesystem.py
+++ b/elbepack/tests/test_efilesystem.py
@@ -78,3 +78,8 @@ class TestCopyFilelist(unittest.TestCase):
# We should now have the content from /SRC/a/bla in /DST/a/bla
self.assertEqual(self.src.read_file('/a/bla'),
self.dst.read_file('/a/bla'))
+
+ @unittest.expectedFailure
+ def test_badfile(self):
+ # This should throw a CommandError
+ copy_filelist(self.src, ['/doesnt/exist'], self.dst)
--
2.26.2
More information about the elbe-devel
mailing list