[125579] trunk/base/src/package1.0/tests/portmpkg.test
jmr at macports.org
jmr at macports.org
Sun Sep 21 17:14:38 PDT 2014
Revision: 125579
https://trac.macports.org/changeset/125579
Author: jmr at macports.org
Date: 2014-09-21 17:14:37 -0700 (Sun, 21 Sep 2014)
Log Message:
-----------
don't assume the mport handle will have a fixed name in make_dependency_list test
Modified Paths:
--------------
trunk/base/src/package1.0/tests/portmpkg.test
Modified: trunk/base/src/package1.0/tests/portmpkg.test
===================================================================
--- trunk/base/src/package1.0/tests/portmpkg.test 2014-09-22 00:01:45 UTC (rev 125578)
+++ trunk/base/src/package1.0/tests/portmpkg.test 2014-09-22 00:14:37 UTC (rev 125579)
@@ -67,9 +67,22 @@
set destination $pwd/destination
} -body {
set res [portmpkg::make_dependency_list $subport $destination]
- if { $res != "{fondu 0 060102 1 ditem_4}" } {
- return "FAIL: invalid dependency list"
+ if {[llength $res] != 1} {
+ return "FAIL: unexpectedly long dependency list: $res"
}
+ # indices:
+ # 0 name
+ # 1 epoch
+ # 2 version
+ # 3 revision
+ set res [lindex $res 0]
+ if {[llength $res] != 5 ||
+ [lindex $res 0] != $subport ||
+ [lindex $res 1] != 0 ||
+ [lindex $res 2] != 060102 ||
+ [lindex $res 3] != 1} {
+ return "FAIL: incorrect dependency list entry: $res"
+ }
return "Dependency list successful."
} -result "Dependency list successful."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140921/cc3db9ad/attachment.html>
More information about the macports-changes
mailing list