[ovito] 01/02: Do not fail on test, if data-file does not exist

Anton Gladky gladk at moszumanska.debian.org
Mon Nov 20 18:53:49 UTC 2017


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

gladk pushed a commit to branch master
in repository ovito.

commit cf298594b2aec239bfe365161528366e90ead2c8
Author: Anton Gladky <gladk at debian.org>
Date:   Mon Nov 20 18:58:14 2017 +0100

    Do not fail on test, if data-file does not exist
---
 debian/patches/fix_export_test.patch | 19 +++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/fix_export_test.patch b/debian/patches/fix_export_test.patch
new file mode 100644
index 0000000..08122fd
--- /dev/null
+++ b/debian/patches/fix_export_test.patch
@@ -0,0 +1,19 @@
+Description: Pass test if removed file not found
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2017-11-20
+
+Index: ovito-2.9.0+dfsg1/tests/scripts/test_suite/export_file_text.py
+===================================================================
+--- ovito-2.9.0+dfsg1.orig/tests/scripts/test_suite/export_file_text.py
++++ ovito-2.9.0+dfsg1/tests/scripts/test_suite/export_file_text.py
+@@ -7,4 +7,8 @@ test_data_dir = "../../files/"
+ 
+ node = import_file(test_data_dir + "LAMMPS/animation1.dump", multiple_frames = True)
+ export_file(node, "_export_file_text.data", "txt", columns = ["Timestep", "SourceFrame"], multiple_frames = True)
+-os.remove("_export_file_text.data")
+\ No newline at end of file
++
++try:
++    os.remove("_export_file_text.data")
++except FileNotFoundError:
++    pass
diff --git a/debian/patches/series b/debian/patches/series
index 84dcdb5..5e7d3f0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0004-Use-system-pybind11.patch
 06_fix_gcc7_compiation.patch
 10_fix_ftbfs_on_some_archs.patch
+fix_export_test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ovito.git



More information about the debian-science-commits mailing list