[damned-lies] Fix gnome-hello test repo broken after 8136c7438f96
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [damned-lies] Fix gnome-hello test repo broken after 8136c7438f96
- Date: Thu,  6 Oct 2016 15:01:22 +0000 (UTC)
commit 80c78865f4ce59cb5f21dc91801f23b178c839c9
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Oct 6 16:38:34 2016 +0200
    Fix gnome-hello test repo broken after 8136c7438f96
 stats/tests/gnome-hello.tar.gz |  Bin 332743 -> 336857 bytes
 stats/tests/tests.py           |    6 ++++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/stats/tests/gnome-hello.tar.gz b/stats/tests/gnome-hello.tar.gz
index 68c9472..4d6f016 100644
Binary files a/stats/tests/gnome-hello.tar.gz and b/stats/tests/gnome-hello.tar.gz differ
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index dcd2dc6..be75be5 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -375,8 +375,10 @@ class ModuleTestCase(TestCase):
         cherry-pick the branch commit on the master branch.
         """
         domain = self.mod.domain_set.get(name='po')
-        commit_dir = os.path.join(self.branch.co_path(), domain.directory)
-        utils.run_shell_command(['git', 'checkout', '-b', 'gnome-3-18', 'origin/master'], cwd=commit_dir)
+        commit_dir = self.branch.co_path()
+        utils.run_shell_command(
+            ['git', 'checkout', '-b', 'gnome-3-18', 'origin/master'], cwd=commit_dir, raise_on_error=True
+        )
         branch = Branch.objects.create(module=self.mod, name='gnome-3-18')
         fr_lang = Language.objects.get(locale='fr')
         # Copy stats from master
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]