]> git.baikalelectronics.ru Git - uboot.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)
commitcb7706dd61322a7380825ffe19e4c84696e9ddd2
treefa512023916e3e7a1a90aec43a6bdfb8ddcbd199
parent6c1b2d5d131c8fa19770d2e149328eb9b070be0b
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]