diff options
Diffstat (limited to 'rpmci/subtask.py')
-rw-r--r-- | rpmci/subtask.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmci/subtask.py b/rpmci/subtask.py index a95831a..283cfff 100644 --- a/rpmci/subtask.py +++ b/rpmci/subtask.py @@ -56,7 +56,7 @@ def _handle_task_exit(taskid, log_path, logf, proc): logf.write(msg) logf.close() if ecode != 0: - shutil.move(log_path, _failed_path) + os.rename(log_path, os.path.join(_failed_path, os.path.basename(log_path))) def spawn_sync(taskid, argv, cwd=None): (log_path, f) = _init_task_run(taskid, argv, cwd) |