public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/sync/
Date: Thu,  5 Jul 2018 10:20:20 +0000 (UTC)	[thread overview]
Message-ID: <1530785963.82823b0c4de0a7cbb5654bb19d63aef874800afd.zmedico@gentoo> (raw)

commit:     82823b0c4de0a7cbb5654bb19d63aef874800afd
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  5 10:18:55 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jul  5 10:19:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=82823b0c

test_sync_local: fix GitSync coverage

Fixes: 0655b4a26e37 ("test_sync_local: add test for auto-sync set to 'no'")

 pym/portage/tests/sync/test_sync_local.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/pym/portage/tests/sync/test_sync_local.py b/pym/portage/tests/sync/test_sync_local.py
index 010c8f887..17ff6f200 100644
--- a/pym/portage/tests/sync/test_sync_local.py
+++ b/pym/portage/tests/sync/test_sync_local.py
@@ -102,17 +102,20 @@ class SyncLocalTestCase(TestCase):
 			os.unlink(os.path.join(metadata_dir, 'timestamp.chk'))
 
 		sync_cmds = (
+			(homedir, cmds["emerge"] + ("--sync",)),
+			(homedir, lambda: self.assertTrue(os.path.exists(
+				os.path.join(repo.location, "dev-libs", "A")
+				), "dev-libs/A expected, but missing")),
+			(homedir, cmds["emaint"] + ("sync", "-A")),
+		)
+
+		sync_cmds_auto_sync = (
 			(homedir, lambda: repos_set_conf("rsync", auto_sync="no")),
 			(homedir, cmds["emerge"] + ("--sync",)),
 			(homedir, lambda: self.assertFalse(os.path.exists(
 				os.path.join(repo.location, "dev-libs", "A")
 				), "dev-libs/A found, expected missing")),
 			(homedir, lambda: repos_set_conf("rsync", auto_sync="yes")),
-			(homedir, cmds["emerge"] + ("--sync",)),
-			(homedir, lambda: self.assertTrue(os.path.exists(
-				os.path.join(repo.location, "dev-libs", "A")
-				), "dev-libs/A expected, but missing")),
-			(homedir, cmds["emaint"] + ("sync", "-A")),
 		)
 
 		rename_repo = (
@@ -236,7 +239,7 @@ class SyncLocalTestCase(TestCase):
 				# triggered by python -Wd will be visible.
 				stdout = subprocess.PIPE
 
-			for cwd, cmd in rename_repo + sync_cmds + \
+			for cwd, cmd in rename_repo + sync_cmds_auto_sync + sync_cmds + \
 				rsync_opts_repos + rsync_opts_repos_default + \
 				rsync_opts_repos_default_ovr + rsync_opts_repos_default_cancel + \
 				delete_sync_repo + git_repo_create + sync_type_git + \


             reply	other threads:[~2018-07-05 10:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 10:20 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-31 21:03 [gentoo-commits] proj/portage:master commit in: pym/portage/tests/sync/ Zac Medico
2017-01-28 21:11 Zac Medico
2014-12-04 20:16 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1530785963.82823b0c4de0a7cbb5654bb19d63aef874800afd.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox