[diffoscope] 03/03: tests: Smoke-test test profiling output.

Chris Lamb chris at chris-lamb.co.uk
Fri Feb 3 00:49:31 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit dd09b6c45be9e0c5fa6dd37c1e5a7fc15fbe75af
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Feb 3 12:47:32 2017 +1300

    tests: Smoke-test test profiling output.
---
 tests/test_main.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/test_main.py b/tests/test_main.py
index 026bce5..a6a4770 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -124,3 +124,10 @@ def test_list_tools(capsys):
     assert err == ''
     assert 'External-Tools-Required: ' in out
     assert 'xxd,' in out
+
+def test_profiling(capsys):
+    ret, out, err = run(capsys, TEST_TAR1_PATH, TEST_TAR1_PATH, '--profile=-')
+
+    assert ret == 0
+    assert "Profiling output for" in out
+    assert err == ''

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list