[146695] trunk/base/src/macports1.0/tests/macports.test
raimue at macports.org
raimue at macports.org
Tue Mar 15 08:34:31 PDT 2016
Revision: 146695
https://trac.macports.org/changeset/146695
Author: raimue at macports.org
Date: 2016-03-15 08:34:30 -0700 (Tue, 15 Mar 2016)
Log Message:
-----------
macports1.0/test:
Fix test for init_logging. "debuglog" is no longer a valid channel.
Only check for creation of log file.
Modified Paths:
--------------
trunk/base/src/macports1.0/tests/macports.test
Modified: trunk/base/src/macports1.0/tests/macports.test
===================================================================
--- trunk/base/src/macports1.0/tests/macports.test 2016-03-15 15:31:52 UTC (rev 146694)
+++ trunk/base/src/macports1.0/tests/macports.test 2016-03-15 15:34:30 UTC (rev 146695)
@@ -112,13 +112,15 @@
if {[macports::init_logging $mport] != 0} {
return "FAIL: incorrect channels"
}
- if {$macports::channels(any) ne "stdout debuglog"} {
- return "FAIL: incorrect channels(any)"
+
+ set portname [_mportkey $mport subport]
+ set portpath [_mportkey $mport portpath]
+ set logname [file join [macports::getportlogpath $portpath $portname] main.log]
+
+ if {![file exists $logname]} {
+ return "FAIL: log file was not created at $logname"
}
- if {(![info exists ui_options(ports_debug)] && $macports::channels(debug) ne "debuglog") ||
- ([info exists ui_options(ports_debug)] && $macports::channels(debug) ne "stderr debuglog")} {
- return "FAIL: incorrect channels(debug)"
- }
+
return "Init logging successful."
} -cleanup {
mportclose $mport
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160315/2a6f5230/attachment.html>
More information about the macports-changes
mailing list