mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

robotframework-pabot execute error under marketsquare/robotframework-browser dockers #499

Open nixuewei opened 2 years ago

nixuewei commented 2 years ago

Create Docker files as below and execute pabot --processes 2 /test/Tests/browser, it return FileNotFoundError: [Errno 2] No such file or directory. even if the files path is correcy `FROM marketsquare/robotframework-browser

USER pwuser

RUN pip3 install --user robotframework-faker==5.0.0 RUN pip3 install --user robotframework-pabot==2.7

docker run --rm -v F:\JavaExample\fusion-automation\Automation:/test --ipc=host --user pwuser --security-opt seccomp=F:\JavaExample\fusion-automation\Automation\Resources\config\run\seccomp_profile.json rf_playwright:latest bash -c "pabot --processes 2 /test/Tests/browser" Storing .pabotsuitenames file [ WARNING ]: storing .pabotsuitenames failed [ERROR] EXCEPTION RAISED DURING PABOT EXECUTION [ERROR] PLEASE CONSIDER REPORTING THIS ISSUE TO https://github.com/mkorpela/pabot/issues Total testing: 0.0 seconds Elapsed time: 0.15 seconds Traceback (most recent call last): File "/home/pwuser/.local/bin/pabot", line 8, in sys.exit(main()) File "/home/pwuser/.local/lib/python3.8/site-packages/pabot/pabot.py", line 1882, in main _parallel_execute( File "/home/pwuser/.local/lib/python3.8/site-packages/pabot/pabot.py", line 1290, in _parallel_execute pool = ThreadPool(processes) File "/usr/lib/python3.8/multiprocessing/pool.py", line 925, in init Pool.init(self, processes, initializer, initargs) File "/usr/lib/python3.8/multiprocessing/pool.py", line 196, in init self._change_notifier = self._ctx.SimpleQueue() File "/usr/lib/python3.8/multiprocessing/context.py", line 113, in SimpleQueue return SimpleQueue(ctx=self.get_context()) File "/usr/lib/python3.8/multiprocessing/queues.py", line 336, in init self._rlock = ctx.Lock() File "/usr/lib/python3.8/multiprocessing/context.py", line 68, in Lock return Lock(ctx=self.get_context()) File "/usr/lib/python3.8/multiprocessing/synchronize.py", line 162, in init SemLock.init(self, SEMAPHORE, 1, 1, ctx=ctx) File "/usr/lib/python3.8/multiprocessing/synchronize.py", line 57, in init sl = self._semlock = _multiprocessing.SemLock( FileNotFoundError: [Errno 2] No such file or directory