<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/cea2bf9367a976bb28c73daf72c405d3b502b9cb">https://github.com/macports/macports-base/commit/cea2bf9367a976bb28c73daf72c405d3b502b9cb</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 cea2bf936 Make portutil tests pass
</span>cea2bf936 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cea2bf9367a976bb28c73daf72c405d3b502b9cb
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Apr 8 20:18:52 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> Make portutil tests pass
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> A lot of these are still very confused with regard to what they're
</span><span style='display:block; white-space:pre;color:#404040;'> actually testing.
</span>---
src/port1.0/tests/portutil.test | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/tests/portutil.test b/src/port1.0/tests/portutil.test
</span><span style='display:block; white-space:pre;color:#808080;'>index a477404a6..6305596fc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/tests/portutil.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/tests/portutil.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,13 +35,15 @@ proc init {} {
</span>
proc init_eval_targets {} {
global os_platform os_version os_arch macos_version pwd \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- version mport portpath portbuildpath macports::portdbpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version mport portpath portbuildpath macports::portdbpath \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ filesdir
</span>
set os_platform darwin
set macos_version 10.8.0
set os_version 11
set os_arch i386
set portpath .
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set filesdir files
</span>
# vars for target_run
set portdbpath $pwd/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -521,9 +523,6 @@ test eval_targets {
</span> error "Error evaluating variants"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set epoch $PortInfo(epoch)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set revision $PortInfo(revision)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # messy work just to get $version
set workername [ditem_key $mport workername]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -677,11 +676,11 @@ test canonicalize_variants {
</span> test universal_setup {
Universal setup unit test.
} -body {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set use_configure 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set universal_variant 0
</span> set ditem [variant_new new-variant]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[catch {universal_setup}] != 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return "FAIL: universal variant not set"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {universal_setup} result]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return "FAIL: universal variant not set: $result"
</span> }
return "Universal_setup successful."
} -result "Universal_setup successful."
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -792,7 +791,9 @@ test set_ui_prefix {
</span> test get_portimage_name {
Get portimage name unit test.
} -body {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set platforms darwin
</span> set os.platform darwin
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set os.subplatform macosx
</span> set version 1.0
set os.major 10
set revision 2
</pre><pre style='margin:0'>
</pre>