diff --git a/openstack_dashboard/test/selenium/conftest.py b/openstack_dashboard/test/selenium/conftest.py index f2fdd60333..acd8385972 100644 --- a/openstack_dashboard/test/selenium/conftest.py +++ b/openstack_dashboard/test/selenium/conftest.py @@ -148,7 +148,10 @@ def record_video(request, report_dir, xdisplay): popen.communicate() thread.join() if not request.node.stash.get(STASH_FAILED, False): - os.remove(filepath) + try: + os.remove(filepath) + except OSError: + pass @pytest.fixture(scope='session')