[gnome-continuous] integrationtest: use cp instead of shutil_cp_al
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] integrationtest: use cp instead of shutil_cp_al
- Date: Mon, 12 May 2014 22:28:09 +0000 (UTC)
commit ef3ea5781f8b28a88ea3c6273eae9377959e4fd1
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon May 12 22:29:05 2014 +0200
integrationtest: use cp instead of shutil_cp_al
Build.gnome.org give shutil_cp_al gives:
Cannot copy gtk+_treeview.test: Gio.IOErrorEnum: Operation not permitted
which we can't reproduce locally
Let's try using internal copy
src/js/tasks/task-integrationtest.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/js/tasks/task-integrationtest.js b/src/js/tasks/task-integrationtest.js
index 33225d7..e8cd2f7 100644
--- a/src/js/tasks/task-integrationtest.js
+++ b/src/js/tasks/task-integrationtest.js
@@ -93,8 +93,8 @@ const TaskIntegrationTest = new Lang.Class({
FileUtil.walkDir(resultsSrc, { depth: 1, fileType: Gio.FileType.DIRECTORY },
Lang.bind(this, function(filePath, cancellable) {
try {
- testResultsDest = resultsDest.resolve_relative_path(filePath.get_basename())
- GSystem.shutil_cp_al_or_fallback(filePath, testResultsDest, cancellable);
+ var testResultsDest = resultsDest.resolve_relative_path(filePath.get_basename());
+ ProcUtil.runSync(['cp', '-r', filePath.get_path(), testResultsDest.get_path()],
cancellable);
} catch (e) {
print(Format.vprintf('Cannot copy %s: %s', [filePath.get_basename(), e]));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]