Skip to content

Rustpkg test runs tests of an external dependency if it's already been downloaded #10395

Closed
@sfackler

Description

@sfackler

https://github.com/sfackler/rust-postgres depends on https://github.com/sfackler/rust-ssl. When I run tests via rustpkg, the following very weird thing happens:

> git clone ssh://git@github.com/sfackler/rust-postgres.git
...
> cd rust-postgres
> env TMPDIR=$HOME/tmp rustpkg test
WARNING: The Rust package manager is experimental and may be unstable
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust

running 73 tests
...
<rust-postgres tests omitted>
> touch test.rs
> env TMPDIR=$HOME/tmp rustpkg test
WARNING: The Rust package manager is experimental and may be unstable
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust

running 10 tests
...
<rust-ssl tests omitted>
> rm -rf .rust
> env TMPDIR=$HOME/tmp rustpkg test
WARNING: The Rust package manager is experimental and may be unstable
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust
note: Installed package github.com/sfackler/rust-ssl-0.1 to /home/sfackler/test/src/rust-postgres/.rust

running 73 tests
...
<rust-postgres tests omitted>

cc @catamorphism

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions