[tor-bugs] #26455 [Core Tor/Tor]: use correct CARGO_HOME in test_rust.sh

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jun 21 22:32:17 UTC 2018


#26455: use correct CARGO_HOME in test_rust.sh
----------------------------+----------------------------------------------
     Reporter:  catalyst    |      Owner:  catalyst
         Type:  defect      |     Status:  assigned
     Priority:  Medium      |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core        |    Version:
  Tor/Tor                   |
     Severity:  Normal      |   Keywords:  rust, tor-ci, tor-test, fast-fix
Actual Points:              |  Parent ID:
       Points:              |   Reviewer:
      Sponsor:              |
----------------------------+----------------------------------------------
 `make check` currently doesn't seem to work with `--enable-rust` without
 `--enable-cargo-online-mode`.

 It looks like cargo expects `CARGO_HOME` to point to the `.cargo`
 directory itself, not the directory containing it.  Builds seem to work
 anyway because we `cd` to a directory where cargo can find a `.cargo`
 directory, even though we set `CARGO_HOME` incorrectly.

 This might be making Jenkins builds fail too:

 https://jenkins.torproject.org/job/tor-ci-linux-master-
 rust/ARCHITECTURE=i386,SUITE=sid/lastBuild/console

 {{{
 20:04:05 FAIL: src/test/test_rust.sh
 20:04:05 ===========================
 20:04:05
 20:04:05 error: attempting to make an HTTP request, but --frozen was
 specified
 20:04:05 error: attempting to make an HTTP request, but --frozen was
 specified
 }}}

 This incarnation of this bug seems to be in the fix for #26258, but
 similar problems seem to exist in releases as far back as 0.3.1.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26455>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list