summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-10-27 10:31:29 +0200
committerJean Delvare <jdelvare@suse.de>2017-10-27 10:31:29 +0200
commite086eaf82793bcc4037786ae4ee3bdd594cb993f (patch)
treec1ea750fd7884991b1cd70b8d5759efd609b0c0f
parent50abdc48274119155a73a875d6123c3766efd2ec (diff)
downloadquilt-e086eaf82793bcc4037786ae4ee3bdd594cb993f.tar.gz
test/space-in-work-dir: Increase code path coverage
Increase the code path coverage of test case space-in-work-dir by running one command from a subdirectory.
-rw-r--r--test/space-in-work-dir.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/space-in-work-dir.test b/test/space-in-work-dir.test
index 234fcd3..7dcd468 100644
--- a/test/space-in-work-dir.test
+++ b/test/space-in-work-dir.test
@@ -5,6 +5,7 @@ $ mkdir project
$ cd project
$ mkdir patches
+$ mkdir subdir
$ echo old > a
$ quilt new 1.patch
@@ -26,12 +27,16 @@ $ cat patches/1.patch
> -old
> +new
+# Running a command when not at the root of the project tests additional
+# code paths
+$ cd subdir
$ quilt diff --no-index
> --- project.orig/a
> +++ project/a
> @@ -1 +1 @@
> -old
> +new
+$ cd ..
$ quilt pop
> Removing patch patches/1.patch