Fixed issue with screenshots for Jenkins job.
Change-Id: I634c2498ec27f419592c6323f9fd367b868acd0e
This commit is contained in:
@@ -72,8 +72,8 @@ parser.add_argument('-r', action='store', dest='reports_dir',
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
make_displays = Popen('sudo pkill Xvfb; rm -rf /tmp/.X*-lock', shell=True)
|
||||
while make_displays.poll() is None:
|
||||
clear_displays = Popen('sudo pkill Xvfb; rm -rf /tmp/.X*-lock', shell=True)
|
||||
while clear_displays.poll() is None:
|
||||
sleep(1)
|
||||
|
||||
# Generate the command for executing tests.
|
||||
@@ -123,3 +123,7 @@ else:
|
||||
# Wait for all threads finish.
|
||||
while len(threads) > 0:
|
||||
wait_for_finished(threads)
|
||||
|
||||
clear_displays = Popen('sudo pkill Xvfb; rm -rf /tmp/.X*-lock', shell=True)
|
||||
while clear_displays.poll() is None:
|
||||
sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user