| 527 | |
| 528 | |
| 529 | def test_repro_no_commit(tmp_dir, dvc, copy_script): |
| 530 | tmp_dir.gen("bar", "bar") |
| 531 | tmp_dir.dvc_gen("foo", "foo") |
| 532 | stage = dvc.run( |
| 533 | outs=["file1"], |
| 534 | deps=["foo", "copy.py"], |
| 535 | cmd="python copy.py foo file1", |
| 536 | name="run1", |
| 537 | ) |
| 538 | remove(dvc.cache.local.path) |
| 539 | ret = main(["repro", stage.addressing, "--no-commit"]) |
| 540 | assert ret == 0 |
| 541 | # run-cache should be skipped if `-no-commit`. |
| 542 | assert not os.path.isdir(dvc.cache.local.path) |
| 543 | |
| 544 | |
| 545 | def test_repro_all_pipelines(mocker, dvc): |