Skip to content

Commit

Permalink
Updated start function to handle know issue in
Browse files Browse the repository at this point in the history
 main repo sosy-lab#776
  • Loading branch information
Johan committed Mar 14, 2022
1 parent 36eb99d commit 77547ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contrib/p4-benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@ def __init__(self):
BenchExec.__init__(self)

def load_executor(self):
from p4.p4execution import P4Execution
from p4_files.p4execution import P4Execution

return P4Execution()

def start(self, argv):
"""
Make sure the test is not executed in container. Otherwise the application
wont be able to create new containers for the switches.
"""
if not "--no-container" in argv:
argv.append("--no-container")
return super().start(argv)


def main(benchexec=None, argv=None):
"""
Expand Down

0 comments on commit 77547ed

Please sign in to comment.