Commit 9896af0
* testsuite: Set TMPDIR to a specific folder rather than the test root
If things start getting created in the TMPDIR, then it is better to not
place them directly in the project root next to the source and test
files. This also makes it easier to write tests which are sensitive to
what is created in the CWD.
(cherry picked from commit c64a32d)
# Conflicts:
# cabal-testsuite/PackageTests/HaddockKeepTmpsCustom/cabal.test.hs
# cabal-testsuite/PackageTests/HaddockKeepsTmps/cabal.test.hs
# cabal-testsuite/src/Test/Cabal/Monad.hs
* cabal-install: Fix the directory the build folder is created in
Clearly this path needs to be relative to the CWD, and the correct
offset is passed as the `srcdir` parameter.
Fixes #10772
(cherry picked from commit 85ef030)
* Add tests which check build/dist-newstyle folders are not created with v2-run
The existing test CmdRun/Script is modified to test the case when v2-run
is executed in a project context. This test checks that a "build" folder
is not created in the CWD (#10772)
A new test is also added which checks what happens in the "no context"
case. A separate bug was fixed in this area recently but no test added
which verifies the change (#10686)
(cherry picked from commit 852430c)
* Quickfix the conflicts in tests; let's see if it works
* Remove test updates for which we lack machinery
* Remove the added test and all the modifications to an old test
---------
Co-authored-by: Matthew Pickering <[email protected]>
Co-authored-by: Mikolaj Konarski <[email protected]>
1 parent ffa5f6d commit 9896af0
File tree
3 files changed
+24
-1
lines changed- cabal-install/src/Distribution/Client/ProjectBuilding
- cabal-testsuite/src/Test/Cabal
- changelog.d
3 files changed
+24
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
544 | 549 | | |
545 | 550 | | |
546 | 551 | | |
| 552 | + | |
547 | 553 | | |
548 | 554 | | |
549 | 555 | | |
| |||
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
823 | 834 | | |
824 | 835 | | |
825 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments