Skip to content

Unable to copy test output to devices directory #189

@jboddey

Description

@jboddey

Describe the bug
After completion of a test run, the following error occurred:

Exception in thread Callback thread:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/testrun/framework/python/src/core/testrun.py", line 410, in _device_stable
result = self._test_orc.run_test_modules()
File "/usr/local/testrun/framework/python/src/test_orc/test_orchestrator.py", line 109, in run_test_modules
self._timestamp_results(device)
File "/usr/local/testrun/framework/python/src/test_orc/test_orchestrator.py", line 238, in _timestamp_results
shutil.copytree(cur_results_dir, completed_results_dir)
File "/usr/lib/python3.10/shutil.py", line 559, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
File "/usr/lib/python3.10/shutil.py", line 457, in _copytree
os.makedirs(dst, exist_ok=dirs_exist_ok)
File "/usr/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/usr/local/testrun/local/devices/eth 123/reports/2023-11-15T14:22:51'

  • Reproduction steps are unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions