diff options
author | Colin Walters <walters@verbum.org> | 2010-10-13 14:08:39 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-10-13 14:11:47 -0400 |
commit | 81a1480e3e28881b54a07ad7b07249daef067289 (patch) | |
tree | 1fc1359065bec94b9cc31017931fbaade2d512fb | |
parent | b1cd19a8c36e8edbf116eef51762cd47c5d2d5ca (diff) | |
download | rpmci-81a1480e3e28881b54a07ad7b07249daef067289.tar.gz rpmci-81a1480e3e28881b54a07ad7b07249daef067289.tar.xz rpmci-81a1480e3e28881b54a07ad7b07249daef067289.zip |
subtask: Fix renaming of failed task logs
-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) |