Changeset 145038 for trunk/base


Ignore:
Timestamp:
Jan 24, 2016, 2:28:10 AM (4 years ago)
Author:
raimue@…
Message:

base: tests in macports1.0, package1.0:
Change hardcoded URL to an existing archive to fix immediate test failures

Location:
trunk/base/src
Files:
2 edited

Legend:

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

    r138950 r145038  
    582582    Fetch port unit test.
    583583} -body {
    584     set url http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2
     584    set url http://packages.macports.org/db_select/db_select-0.1_3.darwin_14.noarch.tbz2
    585585    set res [macports::fetch_port $url]
    586     if {$res ne "${pwd}/portdbpath/portdirs/db_select-0.1_2"} {
     586    if {$res ne "${pwd}/portdbpath/portdirs/db_select-0.1_3"} {
    587587        return "FAIL: cannot fetch port"
    588588    }
     
    608608    close [open $pwd/local_file w+]
    609609} -body {
    610     set url http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2
     610    set url http://packages.macports.org/db_select/db_select-0.1_3.darwin_14.noarch.tbz2
    611611    set res [macports::getportdir $url]
    612     set expected ${pwd}/portdbpath/portdirs/db_select-0.1_2
     612    set expected ${pwd}/portdbpath/portdirs/db_select-0.1_3
    613613    if {$res ne $expected} {
    614614            return "FAIL: incorrect port directory $res (expected $expected)"
     
    632632} -body {
    633633    set macports::portdbpath $pwd/portdbpath
    634     set url "http://packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2"
     634    set url "http://packages.macports.org/db_select/db_select-0.1_3.darwin_14.noarch.tbz2"
    635635    set default_path $pwd/portdbpath/sources/rsync.macports.org/release/tarballs/ports/_resources
    636     set fallback_path $pwd/portdbpath/sources/packages.macports.org/db_select/db_select-0.1_2.darwin_13.noarch.tbz2/_resources
     636    set fallback_path $pwd/portdbpath/sources/packages.macports.org/db_select/db_select-0.1_3.darwin_14.noarch.tbz2/_resources
    637637
    638638    if {[macports::getportresourcepath $url "" yes] ne $default_path} {
  • trunk/base/src/package1.0/tests/portarchivefetch.test

    r125580 r145038  
    8888        db_select http://packages.macports.org/db_select/
    8989    }
    90     set portarchivefetch::archivefetch_urls {db_select db_select-0.1_2.darwin_13.noarch.tbz2}
     90    set portarchivefetch::archivefetch_urls {db_select db_select-0.1_3.darwin_14.noarch.tbz2}
    9191    set target_state_fd [open $pwd/target w+]
    9292
     
    105105        return "FAIL: cannot fetch archive"
    106106    }
    107     if {[file exists ${archivefetch.fulldestpath}/db_select-0.1_2.darwin_13.noarch.tbz2]} {
     107    if {[file exists ${archivefetch.fulldestpath}/db_select-0.1_3.darwin_14.noarch.tbz2]} {
    108108        return "FAIL: unverified archive not discarded"
    109109    }
     
    113113        return "FAIL: cannot fetch archive"
    114114    }
    115     if {![file exists ${archivefetch.fulldestpath}/db_select-0.1_2.darwin_13.noarch.tbz2]} {
     115    if {![file exists ${archivefetch.fulldestpath}/db_select-0.1_3.darwin_14.noarch.tbz2]} {
    116116        return "FAIL: verified archive deleted"
    117117    }
Note: See TracChangeset for help on using the changeset viewer.