summaryrefslogtreecommitdiff
path: root/tests/integration/shell.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-03-24 10:56:17 +0000
committerBenjamin Schubert <contact@benschubert.me>2020-04-23 09:02:22 +0100
commitd6abc068767d5b9cef241705536de405743ec276 (patch)
treee62e1b618733e655343cc48f1e415eede9a08701 /tests/integration/shell.py
parent10de4185bf4320b0187f637ec5a84d57882020b1 (diff)
downloadbuildstream-bschubert/fix-mktemp-usage.tar.gz
tests: Stop using tmpdir_factory.mkdtemp("")bschubert/fix-mktemp-usage
Using "" as a directory is invalid starting from pytest 5.4.0, let's use the __file__ name instead
Diffstat (limited to 'tests/integration/shell.py')
-rw-r--r--tests/integration/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index cd93923b7..2aa386730 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -366,7 +366,7 @@ def test_integration_devices(cli, datafiles):
@pytest.mark.parametrize("guess_element", [True, False], ids=["guess", "no-guess"])
@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox")
def test_integration_external_workspace(cli, tmpdir_factory, datafiles, build_shell, guess_element):
- tmpdir = tmpdir_factory.mktemp("")
+ tmpdir = tmpdir_factory.mktemp(os.path.basename(__file__))
project = str(datafiles)
element_name = "autotools/amhello.bst"
workspace_dir = os.path.join(str(tmpdir), "workspace")