]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest/archiver: Allow tests to ignore empty directories
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Jul 2021 15:29:55 +0000 (16:29 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 6 Jul 2021 14:37:02 +0000 (04:37 -1000)
commitc96bcf97272f243df14598c84a41097746884b65
tree61aa40f9a0caa0aa8c5eef96321363f1bfb418f6
parent9e2c7750f57bd1baa429d2f28a4c836ee57d1bfc
oeqa/selftest/archiver: Allow tests to ignore empty directories

If we tweak sstate to not remove empty directories under conditions
where a race could occur, we see failures from:

"oe-selftest -r archiver.Archiver.test_archiver_filters_by_type archiver.Archiver.test_archiver_filters_by_type_and_name"

since an empty directory is left behind. Update the tests to ignore
empty directories.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 10cda713faea9a348fd278137ac75e4a6d76a71c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/archiver.py