testsuite/tests/publish/check-build/test.py
raw| 1 | """ |
| 2 | Tests that a failing build is reported during publishing |
| 3 | """ |
| 4 | |
| 5 | from drivers.alr import run_alr |
| 6 | from drivers.asserts import assert_match |
| 7 | |
| 8 | p = run_alr("publish", "my_index/crates/crate.tgz", |
| 9 | complain_on_error=False, force=True) |
| 10 | assert_match(".*Compilation failed.*", p.out) |
| 11 | |
| 12 | print('SUCCESS') |