Commit 1bf642c8 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test] Init code cleanup

parent 16832e4f
......@@ -37,15 +37,19 @@
import os
import sys
import subprocess
import subprocess as sp # nosec
import shutil
import tempfile
import pkg_resources
import logging
if sys.platform == "darwin":
tmp_prefix = tempfile.mkdtemp(prefix=__name__, suffix=".tmpdir", dir="/tmp")
prefix_folder = tempfile.mkdtemp(prefix=__name__, suffix=".prefix", dir="/tmp")
tmp_prefix = tempfile.mkdtemp(
prefix=__name__, suffix=".tmpdir", dir="/tmp" # nosec
prefix_folder = tempfile.mkdtemp(
prefix=__name__, suffix=".prefix", dir="/tmp" # nosec
tmp_prefix = tempfile.mkdtemp(prefix=__name__, suffix=".tmpdir")
prefix_folder = tempfile.mkdtemp(prefix=__name__, suffix=".prefix")
......@@ -86,7 +90,7 @@ def setup_package():
for path in prefixes:
subprocess.check_call(["rsync", "-arz", path, prefix_folder])
sp.check_call(["rsync", "-arz", path, prefix_folder])
import docker
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment