<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/4ce0063618f2d2c57921b337a6b1b7d97db83072">https://github.com/macports/macports-base/commit/4ce0063618f2d2c57921b337a6b1b7d97db83072</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 4ce0063 tests: Fix git version control updating tests
</span>4ce0063 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4ce0063618f2d2c57921b337a6b1b7d97db83072
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sun Nov 6 18:08:18 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> tests: Fix git version control updating tests
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The expected output for those functions changed with the commits
</span><span style='display:block; white-space:pre;color:#404040;'> - 42a88e507ae9035a759225dd2779f3301865c664 and
</span><span style='display:block; white-space:pre;color:#404040;'> - 08a845ff322d4f1ab55d2fcf53ecb5970d63db57.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fix the tests to pass again.
</span>---
src/macports1.0/tests/macports.test | 31 +++++++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/tests/macports.test b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;color:#808080;'>index e61f1ff..2e8c040 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -734,15 +734,38 @@ test GetVCSUpdateCmd-svn {
</span> } -cleanup {
removeDirectory macports-test-svn-wc $tempdir
removeDirectory macports-test-svn-repo $tempdir
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} -result {Subversion {SVN update --non-interactive WC}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -result {Subversion {SVN update --non-interactive} WC}
</span>
testConstraint hasGit [expr {![catch {macports::findBinary git} git]}]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+testConstraint hasGitAutostash [expr {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ![catch {macports::findBinary git} git] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ![catch {exec $git --version} gitversion] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [package vcompare [lindex [split $gitversion] end] 1.8.4] >= 0}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+testConstraint hasNoGitAutostash [expr {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ![catch {macports::findBinary git} git] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ![catch {exec $git --version} gitversion] &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [package vcompare [lindex [split $gitversion] end] 1.8.4] < 0}]
</span>
test GetVCSUpdateCmd-git {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- Tests GetVCSUpdateCmd on a valid Git repository
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Tests GetVCSUpdateCmd on a valid Git repository with Git >= 1.8.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -constraints {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hasGit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hasGitAutostash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -setup {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set repo [makeDirectory macports-test-git-repo $tempdir]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exec $git init $repo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -body {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string map [list $git GIT $repo REPO] [macports::GetVCSUpdateCmd $repo]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -cleanup {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ removeDirectory macports-test-git-repo $tempdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -result {Git {GIT pull --rebase --autostash} REPO}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test GetVCSUpdateCmd-git-noautostash {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Tests GetVCSUpdateCmd on a valid Git repository with Git < 1.8.4
</span> } -constraints {
hasGit
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ hasNoGitAutostash
</span> } -setup {
set repo [makeDirectory macports-test-git-repo $tempdir]
exec $git init $repo
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -750,7 +773,7 @@ test GetVCSUpdateCmd-git {
</span> string map [list $git GIT $repo REPO] [macports::GetVCSUpdateCmd $repo]
} -cleanup {
removeDirectory macports-test-git-repo $tempdir
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} -result {Git {cd REPO && GIT pull --rebase || true}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -result {Git {GIT pull --rebase} REPO}
</span>
testConstraint hasGitSvn [expr {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -769,7 +792,7 @@ test GetVCSUpdateCmd-gitsvn {
</span> string map [list $git GIT $repo REPO] [macports::GetVCSUpdateCmd $repo]
} -cleanup {
removeDirectory macports-test-git-svn-repo $tempdir
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} -result {git-svn {cd REPO && GIT svn rebase || true}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} -result {git-svn {GIT svn rebase} REPO}
</span>
test GetVCSUpdateCmd-none {
</pre><pre style='margin:0'>
</pre>