diff options
author | Brett Holman <bholman.devel@gmail.com> | 2021-10-11 15:23:09 -0600 |
---|---|---|
committer | Brett Holman <bholman.devel@gmail.com> | 2021-10-11 20:24:12 -0600 |
commit | 60a6b2882ebdfca8930b6c7f130f12feb1938520 (patch) | |
tree | 01817473de4d05149a161d564cbf5f47b2a0c6f9 /smoke_test | |
parent | ba1dbafc1fce6d37c3703e9788bbf5a72f8e55a3 (diff) |
Clean up smoketest and pytests.
- Replace depreciated tempfile with mktemp in smoketest.
- Remove unused pytest imports and variables.
- Make path lookup less fragile. Allows pytest to run from any cwd.
- Prevent exeptions caused by calling functions/methods on None objects.
- Disable fuse tests in smoketest. These are broken and add noise.
- Add missing travis CI dependency.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
Diffstat (limited to 'smoke_test')
-rwxr-xr-x | smoke_test | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -21,7 +21,7 @@ set -e PYTEST="${PYTEST:-pytest-3}" -spam=$(tempfile) +spam=$(mktemp) unset BCACHEFS_FUSE BCACHEFS_TEST_USE_VALGRIND BCACHEFS_DEBUG trap "set +x; cat ${spam}; rm -f ${spam} ; echo; echo FAILED." EXIT @@ -44,7 +44,6 @@ function build() { function test() { echo Running tests. ( - cd tests ${PYTEST} -n${JOBS} ) > ${spam} 2>&1 } @@ -53,7 +52,6 @@ function test_vg() { echo Running tests with valgrind. ( export BCACHEFS_TEST_USE_VALGRIND=yes - cd tests ${PYTEST} -n${JOBS} ) > ${spam} 2>&1 } @@ -71,13 +69,13 @@ test echo -- Test: debug with valgrind -- test_vg -echo -- Test: fuse debug -- -export BCACHEFS_FUSE=1 -build -test +#echo -- Test: fuse debug -- +#export BCACHEFS_FUSE=1 +#build +#test -echo -- Test: fuse debug with valgrind -- -test_vg +#echo -- Test: fuse debug with valgrind -- +#test_vg rm -f ${spam} trap "set +x; echo; echo SUCCESS." EXIT |