mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-25 20:24:18 +00:00
Return the returncode
This commit is contained in:
parent
8105edfd1b
commit
4e7669d009
@ -4,6 +4,7 @@
|
||||
from argparse import ArgumentParser
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
CONTAINER_IMAGE = 'gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:1.0.0'
|
||||
CONTAINER_INPUT_DIR = '/input'
|
||||
@ -34,4 +35,4 @@ if args.log_dir is not None:
|
||||
cmd.append(CONTAINER_IMAGE)
|
||||
cmd += remaining_args
|
||||
|
||||
subprocess.run(cmd)
|
||||
sys.exit(subprocess.run(cmd).returncode)
|
||||
|
Loading…
Reference in New Issue
Block a user