Skip to content

--test-shard A.B is just broken #12540

Closed
Closed
@killerswan

Description

@killerswan

It seems to skip a bunch of tests and the last set is empty...

$ cat src/rustx/demo2.rs 
extern crate extra;

use std::io;

#[main]
fn say_hi () {
   io::println("Hello!!");
}

#[test]
fn testA () {
   assert! (2 + 2 == 4);
}

#[test]
fn testB () {
   assert! (2 + 2 == 4);
}

#[test]
fn testC () {
   assert! (2 + 2 == 4);
}

#[test]
fn testD () {
   assert! (2 + 2 == 4);
}

#[test]
fn testE () {
   assert! (2 + 2 == 4);
}

#[test]
fn testF () {
   assert! (2 + 2 == 4);
}

#[test]
fn testG () {
   assert! (2 + 2 == 4);
}

$ 
$ rustc --test src/rustx/demo2.rs 
...
$ ./demo2 --test-shard 1.3

running 2 tests
test testB ... ok
test testE ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured

rustx $ ./demo2 --test-shard 2.3

running 2 tests
test testC ... ok
test testF ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured

rustx $ ./demo2 --test-shard 3.3

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured

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