Changeset 136512


Ignore:
Timestamp:
May 20, 2015, 2:44:11 AM (5 years ago)
Author:
jmr@…
Message:

fix getportdir test

File:
1 edited

Legend:

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

    r125619 r136512  
    597597    set url http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2
    598598    set res [macports::getportdir $url]
    599     if {$res ne "${pwd}/portdbpath/portdirs/db_select-0.1_2"} {
    600         return "FAIL: invalid port directory"
     599    set expected ${pwd}/portdbpath/portdirs/db_select-0.1_2
     600    if {$res ne $expected} {
     601            return "FAIL: incorrect port directory $res (expected $expected)"
    601602    }
    602603
    603604    set url file://${pwd}/local_file
    604     if {[macports::getportdir $url] ne "${pwd}/local_file"} {
    605         return "FAIL: invalid local port directory"
     605    set res [macports::getportdir $url]
     606    set expected ${pwd}/portdbpath/portdirs/local_file
     607    if {$res ne $expected} {
     608            return "FAIL: incorrect local port directory $res (expected $expected)"
    606609    }
    607610    return "Get port dir successful."
Note: See TracChangeset for help on using the changeset viewer.