diff options
author | Étienne Mollier <emollier@debian.org> | 2024-02-23 15:34:42 +0100 |
---|---|---|
committer | Étienne Mollier <emollier@debian.org> | 2024-02-23 15:34:42 +0100 |
commit | 9448f6f737e7c0780e7e408ed4fcd5259dc1c2cc (patch) | |
tree | 0fcec6c10dc196d4dedf11a8ac41b14823a0b00e | |
parent | 1423f1a4346776b773cb74bf04aa2cf85eb0b728 (diff) |
d/rules: repair test preparation.
Trying to pull all Python files from the test directory causes a
number of test failures.
Gbp-Dch: ignore
-rwxr-xr-x | debian/rules | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules index 930701f..e7ddb3b 100755 --- a/debian/rules +++ b/debian/rules @@ -4,11 +4,13 @@ #export DH_VERBOSE = 1 export PYBUILD_NAME=pyranges -export PYBUILD_BEFORE_TEST=cp -av {dir}/tests/*.bed {build_dir}/tests && \ - cp -av {dir}/tests/test_data {build_dir}/tests && \ - cp -av {dir}/tests/data {build_dir}/tests && \ - cp -av {dir}/pyranges/example_data {build_dir}/pyranges -export PYBUILD_TEST_ARGS=-n $(shell nproc) +export PYBUILD_BEFORE_TEST=\ + mkdir -pv {build_dir}/tests {build_dir}/pyranges \ + && cp -av {dir}/tests/*.bed {build_dir}/tests \ + && cp -av {dir}/tests/test_data {build_dir}/tests \ + && cp -av {dir}/tests/data {build_dir}/tests \ + && cp -av {dir}/pyranges/example_data {build_dir}/pyranges +export PYBUILD_TEST_ARGS=-v -n $(shell nproc) %: dh $@ --buildsystem=pybuild |