Opened 5 months ago

Closed 5 months ago

#70222 closed defect (fixed)

sudo make test fails push_log test

Reported by: kurthindenburg (Kurt Hindenburg) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

sudo make test after sudo make install - current master as of now

===> making test in src/macports1.0
/opt/local/libexec/macports/bin/tclsh8.6 ./../tests/test.tcl -nocolor
Total: 4 Passed: 4 Failed: 0 Skipped: 0  reclaim.test
Total:14 Passed:14 Failed: 0 Skipped: 0  macports_dlist.test
Total:13 Passed:13 Failed: 0 Skipped: 0  macports_util.test
Total:45 Passed:42 Failed: 1 Skipped: 2  macports.test
    Constraint: 1       hasGitSvn
    Constraint: 1       hasSvn


==== push_log Push log unit test. FAILED
==== Contents of test case:

    if {[catch {macports::push_log $mport}] != 0} {
        return "FAIL: cannot push log"
    }
    global macports::logstack macports::debuglog macports::debuglogname
    if {[lindex $logstack 0] ne [list $debuglog $debuglogname]} {
        return "FAIL: incorrect logstack"
    }
    return "Push log successful."

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: can't read "logstack": no such variable
    while executing
"lindex $logstack 0"
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $script"
---- errorCode: TCL LOOKUP VARNAME logstack
==== push_log FAILED

Attachments (1)

config.log.gz (10.0 KB) - added by kurthindenburg (Kurt Hindenburg) 5 months ago.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by kurthindenburg (Kurt Hindenburg)

Attachment: config.log.gz added

comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 5 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 3553ba8bf626d91410c467fe70487c9e950c77fe/macports-base (master):

macports.test: fix log tests

Closes: #70222

Note: See TracTickets for help on using tickets.