-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#This module is for the test script in the docker image | ||
# This module is for the test script in the docker image | ||
# It must use only module from the standard library | ||
from pathlib import Path | ||
import shutil | ||
import subprocess,os | ||
import subprocess, os | ||
|
||
|
||
def copy_me(dstdir: Path) -> None: | ||
shutil.copyfile(src=__file__, dst=dstdir.joinpath("test_solver.py"), follow_symlinks=True) | ||
|
||
|
||
def copy_me(dstdir:Path)-> None: | ||
shutil.copyfile(src=__file__,dst=dstdir.joinpath("test_solver.py"),follow_symlinks=True) | ||
|
||
def init_test() -> None: | ||
os.chdir(os.path.dirname(__file__)) | ||
|
||
def test(cmd:str,args:list[str],file:str) -> None: | ||
all=[cmd]+args+[file] | ||
print(all,flush=True) | ||
|
||
|
||
def test(cmd: str, args: list[str], file: str) -> None: | ||
all = [cmd] + args + [file] | ||
print(all, flush=True) | ||
subprocess.run(all) |