Skip to content

Commit 2473247

Browse files
committed
Multiprocessing guards for start-up scripts. Fixes robotframework#2315.
1 parent 0841106 commit 2473247

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/bin/rebot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
import sys
44
from robot import rebot_cli
55

6-
rebot_cli(sys.argv[1:])
6+
# Multiprocessing guard
7+
# https://github.com/robotframework/robotframework/issues/2315
8+
if __name__ == '__main__':
9+
rebot_cli(sys.argv[1:])

src/bin/robot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
import sys
44
from robot import run_cli
55

6-
run_cli(sys.argv[1:])
6+
# Multiprocessing guard
7+
# https://github.com/robotframework/robotframework/issues/2315
8+
if __name__ == '__main__':
9+
run_cli(sys.argv[1:])

0 commit comments

Comments
 (0)