Skip to content

Commit

Permalink
runq: fix remove --docker arg
Browse files Browse the repository at this point in the history
Better not use it
  • Loading branch information
branylagaffe committed Dec 2, 2024
1 parent 36bafe6 commit 63db226
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions runq
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def parse_args():
parser.add_argument('-d', '--dry', action='store_true', help='Print the arguments instead of executing them')
parser.add_argument('-b', '--binary', default=None, type=str, help='Use a different binary to run the config')
parser.add_argument('-e', '--extra', default="", type=str, help='Add extra arguments to libqflex')
parser.add_argument('--docker', action='store_true', help='Run everything in docker')

# Parse the command-line arguments
args = parser.parse_args()
Expand All @@ -157,11 +156,6 @@ def main(*opts):
"""

args = parse_args()
if args.docker:
rest_of_args = " ".join([i for i in sys.argv if i != '--docker' and i != './runq'])
os.system(
f"docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -ti --entrypoint ./runq qflex-image {rest_of_args}")
return

# Refactor the too greedy search function
qemu:str = shutil.which(args.binary) if args.binary else find('qemu-aarch64')
Expand Down Expand Up @@ -193,4 +187,4 @@ def main(*opts):
os.execvp(ARGS[0], ARGS)

if __name__ == '__main__':
main()
main()

0 comments on commit 63db226

Please sign in to comment.