Skip to content

Commit

Permalink
minor change in test.py and pyproject to test after building wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
eneskuluk committed Nov 14, 2023
1 parent c2bc89e commit c4850d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools", "wheel", "Cython","numpy","protobuf"]
before-build = [
"pip install -r requirements_dev.txt",
]
test-command = "python {package}/test/test.py"
test-command = "python {project}/test/test.py {project}/test/inputs/sanity.test.tgz"
[tool.cibuildwheel.linux]
before-all = "bash install_prereqs.sh && bash install_openssl3.sh && bash install_genomicsdbforwheel.sh"
environment = { LD_LIBRARY_PATH="/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH", OPENSSL_ROOT_DIR="/usr/local"}
Expand Down
4 changes: 2 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def run_test_connect_with_json():
os.makedirs(tmp_dir)
else:
sys.exit("Aborting as temporary directory seems to exist!")

tar = tarfile.open("test/inputs/sanity.test.tgz")
testfile = sys.argv[1] if len(sys.argv) > 0 else 'test/inputs/sanity.test.tgz'
tar = tarfile.open(testfile)
tar.extractall(tmp_dir)

os.chdir(tmp_dir)
Expand Down

0 comments on commit c4850d6

Please sign in to comment.