Changeset 146695 for trunk/base


Ignore:
Timestamp:
Mar 15, 2016, 3:34:30 PM (4 years ago)
Author:
raimue@…
Message:

macports1.0/test:
Fix test for init_logging. "debuglog" is no longer a valid channel.
Only check for creation of log file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/tests/macports.test

    r146688 r146695  
    113113       return "FAIL: incorrect channels"
    114114    }
    115     if {$macports::channels(any) ne "stdout debuglog"} {
    116        return "FAIL: incorrect channels(any)"
    117     }
    118     if {(![info exists ui_options(ports_debug)] && $macports::channels(debug) ne "debuglog") ||
    119         ([info exists ui_options(ports_debug)] && $macports::channels(debug) ne "stderr debuglog")} {
    120        return "FAIL: incorrect channels(debug)"
    121     }
     115
     116    set portname [_mportkey $mport subport]
     117    set portpath [_mportkey $mport portpath]
     118    set logname [file join [macports::getportlogpath $portpath $portname] main.log]
     119
     120    if {![file exists $logname]} {
     121        return "FAIL: log file was not created at $logname"
     122    }
     123
    122124    return "Init logging successful."
    123125} -cleanup {
Note: See TracChangeset for help on using the changeset viewer.