]> git.dujemihanovic.xyz Git - u-boot.git/commit
test/py: convert fs-test.sh to pytest
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 11 Sep 2018 06:59:19 +0000 (15:59 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commitde8106c198b442f8363557006c13a7807d972552
treefa512023916e3e7a1a90aec43a6bdfb8ddcbd199
parent9461fcce37720ec25d0f657f97a22d0d6a3d22fe
test/py: convert fs-test.sh to pytest

In this commit, the same set of test cases as in test/fs/fs-test.sh
is provided using pytest framework.
Actually, fs-test.sh provides three variants:"sb" (sb command), "nonfs"
(fatxx and etc.) and "fs" (hostfs), and this patch currently supports
only "nonfs" variant; So it is not a replacement of fs-test.sh for now.

Simple usage:
  $ py.test test/py/tests/test_fs [<other options>]

You may also specify filesystem types to be tested:
  $ py.test test/py/tests/test_fs --fs-type fat32 [<other options>]

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
test/py/tests/test_fs/conftest.py [new file with mode: 0644]
test/py/tests/test_fs/fstest_defs.py [new file with mode: 0644]
test/py/tests/test_fs/test_basic.py [new file with mode: 0644]