Call module directly rather than binary
This commit is contained in:
parent
fc89f29693
commit
5869befecb
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
import functools
|
import functools
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -55,7 +54,9 @@ class BaseWorkerTestCase(BaseTestCase):
|
||||||
self.unused_port = unused_port()
|
self.unused_port = unused_port()
|
||||||
self.worker_process = subprocess.Popen(
|
self.worker_process = subprocess.Popen(
|
||||||
[
|
[
|
||||||
shutil.which("ctf"),
|
"python",
|
||||||
|
"-m",
|
||||||
|
"catfish",
|
||||||
"start",
|
"start",
|
||||||
"--port",
|
"--port",
|
||||||
str(self.unused_port),
|
str(self.unused_port),
|
||||||
|
|
Reference in a new issue