]> git.ipfire.org Git - thirdparty/bind9.git/commit
testcrypto.sh: run in TMPDIR if possible
authorTom Krizek <tkrizek@isc.org>
Mon, 19 Dec 2022 16:44:35 +0000 (17:44 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 23 Mar 2023 16:17:59 +0000 (17:17 +0100)
commitd631ecdde7ca2bc371d26b98910f12ae3d191ce0
tree1a1111e9b8f55afe82171b8f8e5ba576b5b2815d
parent44f59ef6f6bafa15cec4492821cac33f7d76f1a5
testcrypto.sh: run in TMPDIR if possible

Avoid creating any temporary files in the current workdir.

Additional/changing files in the bin/tests/system directory are
problematic for pytest/xdist collection phase, which assumes the list of
files doesn't change between the collection phase of the main pytest
thread and the subsequent collection phase of the xdist worker threads.

Since the testcrypto.sh is also called during pytest initialization
through conf.sh.common (to detect feature support), this could
occasionally cause a race condition when the list of files would be
different for the main pytest thread and the xdist worker.

(cherry picked from commit 61330a7863c0dfe65f3add97bd363ec4998066aa)
bin/tests/system/get_algorithms.py
bin/tests/system/testcrypto.sh