[Patchew-devel] [PATCH] tests: fixes for rename, copy and rewrite diffstats

Paolo Bonzini posted 1 patch 13 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew next tags/patchew/20190416214912.31547-1-pbonzini@redhat.com
api/models.py                            |   4 +-
tests/data/0008-complex-diffstat.mbox.gz | Bin 4961 -> 2575 bytes
tests/test_model.py                      |  95 +++--------------------
3 files changed, 15 insertions(+), 84 deletions(-)

[Patchew-devel] [PATCH] tests: fixes for rename, copy and rewrite diffstats

Posted by Paolo Bonzini 13 weeks ago
While diffstats involving renames were computed correctly in a
cover letter, in a patch the "rename from" and "rename to" lines
also matched the "rename" pattern.  A simple fix for this is just
to refine the regular expression and, while at it, we can add the
similar case for copied and rewritten files.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 api/models.py                            |   4 +-
 tests/data/0008-complex-diffstat.mbox.gz | Bin 4961 -> 2575 bytes
 tests/test_model.py                      |  95 +++--------------------
 3 files changed, 15 insertions(+), 84 deletions(-)

diff --git a/api/models.py b/api/models.py
index f3e8211..61c12fd 100644
--- a/api/models.py
+++ b/api/models.py
@@ -692,7 +692,9 @@ class Message(models.Model):
             r"1 file changed",
             r"(create|delete) mode [0-7]+",
             r"mode change [0-7]+",
-            r"rename ",
+            r"rename .*\([0-9]+%\)$",
+            r"copy .*\([0-9]+%\)$",
+            r"rewrite .*\([0-9]+%\)$",
         ]
         ret = []
         for l in self.get_body().splitlines():
diff --git a/tests/data/0008-complex-diffstat.mbox.gz b/tests/data/0008-complex-diffstat.mbox.gz
index ac3e72803579d37901735c7ba5e7614792685980..3b530246d1623450c1b28a2f9ae7f0cad9185fc3 100644
GIT binary patch
literal 2575
zcmV+q3h?zGiwFQnOtxGC1HD&mbK*D>{v7`bRranbsYJ#v7{AOg7XoA^b(7s}$n5Ub
zREm;q8MKQnuVp8&clY0~WenJ0a<em6M=F#pbxYk(KmEc@#$%LlpNA{-SWq-bGo<&B
zp?h7!GYw>Dx~q)nf<4oW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MJ%z+iTshCW{6GPdo4ymD{tHVeb#QH3WHeEtwR#a
z-4}cNG*9>SvacT5dseynM|1<_Hk-Xp=h5ZJDnAgvpJ?-DW0jXOwZs42FrhuR)f`xC
zx7Yj6Bl<7)oQE}DS!lLBT&^!$o~MHwl)Z1*efaPykZsiAq0#kmg6%~t=Fp8t?rpt`
zY|tnEyJ&GwZdeD_?r=!S@F2q{G_eEgU$#5wJ-~9UlRVbf4lL5t=(!=Z6?|^=;wm^k
fcBpdlgXeI-vh9Ob(`q?=r(^vO!;17^$2kB1d~k^J

diff --git a/tests/test_model.py b/tests/test_model.py
index 704c658..3256b4c 100755
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -22,89 +22,18 @@ class ImportTest(PatchewTestCase):
 
     def test_get_diff_stat(self):
         expected = """
-MAINTAINERS                                        |   7 +
-Makefile                                           |   9 +-
-Makefile.objs                                      |   2 +
-Makefile.target                                    |   2 +
-block/qapi.c                                       |   4 +-
-blockdev.c                                         |   4 +-
-configure                                          |  36 ++
-crypto/tlssession.c                                |  28 +-
-docs/qapi-code-gen.txt                             |   4 +-
-hmp.c                                              |  16 +-
-include/qapi/qmp-input-visitor.h                   |  30 -
-include/qapi/qmp/qdict.h                           |   1 +
-include/qapi/qobject-input-visitor.h               |  85 +++
-...p-output-visitor.h => qobject-output-visitor.h} |  10 +-
-include/qemu/acl.h                                 |  66 ---
-include/qemu/authz-pam.h                           |  98 ++++
-include/qemu/authz-simple.h                        | 115 ++++
-include/qemu/authz.h                               |  89 +++
-include/qemu/option.h                              |   4 +
-include/qom/object_interfaces.h                    |  10 +-
-monitor.c                                          | 184 ++++--
-qapi-schema.json                                   |   6 +-
-qapi/Makefile.objs                                 |   4 +-
-qapi/opts-visitor.c                                |  19 +-
-qapi/qapi-clone-visitor.c                          |   2 +-
-qapi/qmp-input-visitor.c                           | 412 --------------
-qapi/qmp-output-visitor.c                          | 256 ---------
-qapi/qobject-input-visitor.c                       | 624 +++++++++++++++++++++
-qapi/qobject-output-visitor.c                      | 254 +++++++++
-qapi/util.json                                     |  47 ++
-qemu-img.c                                         |   8 +-
-qmp.c                                              |   6 +-
-qobject/qdict.c                                    | 283 ++++++++++
-qom/object_interfaces.c                            |  47 +-
-qom/qom-qobject.c                                  |   8 +-
-scripts/qapi-commands.py                           |   8 +-
-scripts/qapi-event.py                              |   4 +-
-tests/.gitignore                                   |   7 +-
-tests/Makefile.include                             |  25 +-
-tests/check-qdict.c                                | 241 ++++++++
-tests/check-qnull.c                                |   8 +-
-tests/check-qom-proplist.c                         | 314 ++++++++++-
-tests/test-authz-simple.c                          | 172 ++++++
-tests/test-crypto-tlssession.c                     |  15 +-
-tests/test-io-channel-tls.c                        |  16 +-
-tests/test-qmp-commands.c                          |   4 +-
-...-input-strict.c => test-qobject-input-strict.c} |   4 +-
-...nput-visitor.c => test-qobject-input-visitor.c} | 154 ++++-
-...put-visitor.c => test-qobject-output-visitor.c} |   4 +-
-tests/test-string-input-visitor.c                  |   2 +-
-tests/test-string-output-visitor.c                 |   2 +-
-tests/test-visitor-serialization.c                 |   8 +-
-ui/vnc-auth-sasl.c                                 |   2 +-
-ui/vnc-auth-sasl.h                                 |   4 +-
-ui/vnc.c                                           |  11 +-
-util/Makefile.objs                                 |   7 +-
-util/acl.c                                         | 179 ------
-util/authz-pam.c                                   | 148 +++++
-util/authz-simple.c                                | 314 +++++++++++
-util/authz.c                                       |  47 ++
-util/qemu-option.c                                 |  27 +-
-util/qemu-sockets.c                                |   4 +-
-62 files changed, 3354 insertions(+), 1157 deletions(-)
-delete mode 100644 include/qapi/qmp-input-visitor.h
-create mode 100644 include/qapi/qobject-input-visitor.h
-rename include/qapi/{qmp-output-visitor.h => qobject-output-visitor.h} (66%)
-delete mode 100644 include/qemu/acl.h
-create mode 100644 include/qemu/authz-pam.h
-create mode 100644 include/qemu/authz-simple.h
-create mode 100644 include/qemu/authz.h
-delete mode 100644 qapi/qmp-input-visitor.c
-delete mode 100644 qapi/qmp-output-visitor.c
-create mode 100644 qapi/qobject-input-visitor.c
-create mode 100644 qapi/qobject-output-visitor.c
-create mode 100644 qapi/util.json
-create mode 100644 tests/test-authz-simple.c
-rename tests/{test-qmp-input-strict.c => test-qobject-input-strict.c} (99%)
-rename tests/{test-qmp-input-visitor.c => test-qobject-input-visitor.c} (86%)
-rename tests/{test-qmp-output-visitor.c => test-qobject-output-visitor.c} (99%)
-delete mode 100644 util/acl.c
-create mode 100644 util/authz-pam.c
-create mode 100644 util/authz-simple.c
-create mode 100644 util/authz.c
+hw/display/Kconfig                    | 5 +++++
+hw/display/Makefile.objs              | 1 +
+hw/{i2c => display}/i2c-ddc.c         | 2 +-
+hw/display/sii9022.c                  | 2 +-
+hw/display/sm501.c                    | 2 +-
+hw/i2c/Kconfig                        | 5 -----
+hw/i2c/Makefile.objs                  | 1 -
+include/hw/{i2c => display}/i2c-ddc.h | 0
+include/hw/display/xlnx_dp.h          | 2 +-
+9 files changed, 10 insertions(+), 10 deletions(-)
+rename hw/{i2c => display}/i2c-ddc.c (99%)
+rename include/hw/{i2c => display}/i2c-ddc.h (100%)
 """
         self.cli_import("0008-complex-diffstat.mbox.gz")
         msg = Message.objects.first()
-- 
2.21.0

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel