Skip to content

Commit

Permalink
Adjust tests to new time output format
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKalbertodt committed May 2, 2018
1 parent 88d2886 commit 3572813
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
14 changes: 7 additions & 7 deletions tests/testsuite/alt_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn depend_on_alt_registry() {
[DOWNLOADING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::alt_registry()
Expand All @@ -84,7 +84,7 @@ fn depend_on_alt_registry() {
"\
[COMPILING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -128,7 +128,7 @@ fn depend_on_alt_registry_depends_on_same_registry_no_index() {
[COMPILING] baz v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::alt_registry()
Expand Down Expand Up @@ -173,7 +173,7 @@ fn depend_on_alt_registry_depends_on_same_registry() {
[COMPILING] baz v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::alt_registry()
Expand Down Expand Up @@ -219,7 +219,7 @@ fn depend_on_alt_registry_depends_on_crates_io() {
[COMPILING] baz v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
alt_reg = registry::alt_registry(),
Expand Down Expand Up @@ -267,7 +267,7 @@ fn registry_and_path_dep_works() {
"\
[COMPILING] bar v0.0.1 ({dir}/bar)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -420,7 +420,7 @@ fn alt_registry_and_crates_io_deps() {
.with_stderr_contains("[COMPILING] crates_io_dep v0.0.1")
.with_stderr_contains(&format!("[COMPILING] foo v0.0.1 ({})", p.url()))
.with_stderr_contains(
"[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs",
"[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s",
),
)
}
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn simple_install() {
" Installing bar v0.1.0
Compiling foo v0.1.0
Compiling bar v0.1.0
Finished release [optimized] target(s) in [..] secs
Finished release [optimized] target(s) in [..]s
Installing [..]bar[..]
warning: be sure to add `[..]` to your PATH to be able to run the installed binaries
",
Expand Down Expand Up @@ -288,7 +288,7 @@ fn install_without_feature_dep() {
" Installing bar v0.1.0
Compiling foo v0.1.0
Compiling bar v0.1.0
Finished release [optimized] target(s) in [..] secs
Finished release [optimized] target(s) in [..]s
Installing [..]bar[..]
warning: be sure to add `[..]` to your PATH to be able to run the installed binaries
",
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ warning: Package `foo v0.0.1 ([..])` does not have feature `bar`. It has a requi
that name, but only optional dependencies can be used as features. [..]
Compiling bar v0.0.1 ([..])
Compiling foo v0.0.1 ([..])
Finished dev [unoptimized + debuginfo] target(s) in [..] secs
Finished dev [unoptimized + debuginfo] target(s) in [..]s
"));
}

Expand Down Expand Up @@ -388,7 +388,7 @@ that name, but only optional dependencies can be used as features. [..]
Compiling baz v0.0.1 ([..])
Compiling bar v0.0.1 ([..])
Compiling foo v0.0.1 ([..])
Finished dev [unoptimized + debuginfo] target(s) in [..] secs
Finished dev [unoptimized + debuginfo] target(s) in [..]s
"));
}

Expand Down
36 changes: 18 additions & 18 deletions tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn simple() {
[DOWNLOADING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::registry()
Expand All @@ -61,7 +61,7 @@ fn simple() {
"\
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -99,7 +99,7 @@ fn deps() {
[COMPILING] baz v0.0.1
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::registry()
Expand Down Expand Up @@ -270,7 +270,7 @@ required by package `foo v0.0.1 ([..])`
[DOWNLOADING] notyet v0.0.1 (registry `file://[..]`)
[COMPILING] notyet v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url(),
reg = registry::registry()
Expand Down Expand Up @@ -338,7 +338,7 @@ required by package `foo v0.0.1 ([..])`
[DOWNLOADING] notyet v0.0.1 (registry `file://[..]`)
[COMPILING] notyet v0.0.1
[COMPILING] foo v0.0.1 ({dir}[..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -373,7 +373,7 @@ fn lockfile_locks() {
[DOWNLOADING] bar v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -416,7 +416,7 @@ fn lockfile_locks_transitively() {
[COMPILING] baz v0.0.1
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -465,7 +465,7 @@ fn yanks_are_not_used() {
[COMPILING] baz v0.0.1
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -576,7 +576,7 @@ fn update_with_lockfile_if_packages_missing() {
"\
[UPDATING] registry `[..]`
[DOWNLOADING] bar v0.0.1 (registry `file://[..]`)
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
),
);
Expand Down Expand Up @@ -630,7 +630,7 @@ fn update_lockfile() {
[DOWNLOADING] [..] v0.0.2 (registry `file://[..]`)
[COMPILING] bar v0.0.2
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand All @@ -655,7 +655,7 @@ fn update_lockfile() {
[DOWNLOADING] [..] v0.0.3 (registry `file://[..]`)
[COMPILING] bar v0.0.3
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -746,7 +746,7 @@ fn dev_dependency_not_used() {
[DOWNLOADING] [..] v0.0.1 (registry `file://[..]`)
[COMPILING] bar v0.0.1
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -858,7 +858,7 @@ fn updating_a_dep() {
[COMPILING] bar v0.0.1
[COMPILING] a v0.0.1 ({dir}/a)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -887,7 +887,7 @@ fn updating_a_dep() {
[COMPILING] bar v0.1.0
[COMPILING] a v0.0.1 ({dir}/a)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -946,7 +946,7 @@ fn git_and_registry_dep() {
[COMPILING] a v0.0.1
[COMPILING] b v0.0.1 ([..])
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -1022,7 +1022,7 @@ fn update_publish_then_update() {
[DOWNLOADING] a v0.1.1 (registry `file://[..]`)
[COMPILING] a v0.1.1
[COMPILING] foo v0.5.0 ({dir})
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
dir = p.url()
)),
Expand Down Expand Up @@ -1103,7 +1103,7 @@ fn update_transitive_dependency() {
[COMPILING] b v0.1.1
[COMPILING] a v0.1.0
[COMPILING] foo v0.5.0 ([..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
),
);
Expand Down Expand Up @@ -1361,7 +1361,7 @@ fn only_download_relevant() {
[DOWNLOADING] baz v0.1.0 ([..])
[COMPILING] baz v0.1.0
[COMPILING] bar v0.5.0 ([..])
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] secs
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
",
),
);
Expand Down

0 comments on commit 3572813

Please sign in to comment.