[elbe-devel] [PATCH v2 6/9] tests efilesystem: Test bad file for copy_filelist

Torben Hohn torben.hohn at linutronix.de
Wed May 13 14:09:34 CEST 2020


On Mon, May 04, 2020 at 02:00:09PM -0400, Olivier Dion wrote:
> This test for trying to copy none existing files, resulting in a
> CommandError.
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list