[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] test/space-in-work-dir: Increase code path coverage
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] test/space-in-work-dir: Increase code path coverage |
Date: |
Wed, 25 Oct 2017 15:57:31 +0200 |
Increase the code path coverage of test case space-in-work-dir by
running one command from a subdirectory.
---
test/space-in-work-dir.test | 5 +++++
1 file changed, 5 insertions(+)
--- quilt.orig/test/space-in-work-dir.test 2017-05-02 15:02:55.988641623
+0200
+++ quilt/test/space-in-work-dir.test 2017-10-25 15:47:45.915164868 +0200
@@ -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
--
Jean Delvare
SUSE L3 Support
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] [PATCH] test/space-in-work-dir: Increase code path coverage,
Jean Delvare <=