diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-14 18:11:48 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-14 18:14:08 +0500 |
| commit | f8fc18e6f03df43b603c96bea6ae0017863de7da (patch) | |
| tree | 22b0dea90c1d9a1e5d7e9c7f9135af9e5c0af7c2 /test/lib/test.sh | |
| parent | docs: update usage hints (diff) | |
| download | vk-scripts-f8fc18e6f03df43b603c96bea6ae0017863de7da.tar.gz vk-scripts-f8fc18e6f03df43b603c96bea6ae0017863de7da.zip | |
test: migrate to test-harness
Diffstat (limited to 'test/lib/test.sh')
| -rw-r--r-- | test/lib/test.sh | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/test/lib/test.sh b/test/lib/test.sh index 4b43562..88e8800 100644 --- a/test/lib/test.sh +++ b/test/lib/test.sh @@ -3,24 +3,8 @@ # For details, see https://github.com/egor-tensin/vk-scripts # Distributed under the MIT License. -test_should_fail= -test_root_dir= - -test_setup() { - test_root_dir="$( mktemp -d )" - - log "Root directory: $test_root_dir" -} - -test_cleanup_default() { - if [ -n "$test_root_dir" ]; then - log "Removing test's root directory: $test_root_dir" - rm -rf -- "$test_root_dir" - fi -} - test_run_module() { local cmd=(python3 -m "$@") log_run "${cmd[@]}" - PYTHONPATH="$script_dir/.." "${cmd[@]}" + PYTHONPATH="$tests_dir/.." "${cmd[@]}" } |
