summaryrefslogtreecommitdiffstats
path: root/test/remember-locations.test
blob: 1e39ac7b399b526a19c02fbbff24b093dfaab351 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	$ mkdir -p my/changes

	$ export QUILT_PATCHES=my/changes
	$ export QUILT_SERIES=patchlist
	$ quilt new mychange1
	>~ Patch (my/changes/)?mychange1 is now on top
	$ unset QUILT_PATCHES
	$ unset QUILT_SERIES
	$ cat %{QUILT_PC}/.quilt_patches
	> my/changes
	$ cat %{QUILT_PC}/.quilt_series
	> patchlist
	$ cat my/changes/patchlist
	> mychange1

	# Verify that the custom location is still used even
	# if QUILT_PATCHES is not set
	$ quilt new mychange2
	>~ Patch (my/changes/)?mychange2 is now on top
	# Verify that the root directory can be identified even
	# without QUILT_PATCHES with the QUILT_PC directory
	$ cd my
	$ quilt applied
	>~ (../my/changes/)?mychange1
	>~ (../my/changes/)?mychange2

	$ cd ..