mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-09 05:58:34 +03:00
Merge pull request #188634 from symphorien/paperwork-flakytest
This commit is contained in:
commit
194a90bd71
12
pkgs/applications/office/paperwork/flaky_test.patch
Normal file
12
pkgs/applications/office/paperwork/flaky_test.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/paperwork-backend/tests/docimport/tests_converted.py b/paperwork-backend/tests/docimport/tests_converted.py
|
||||||
|
index 1d1ae39b..bda63fce 100644
|
||||||
|
--- a/paperwork-backend/tests/docimport/tests_converted.py
|
||||||
|
+++ b/paperwork-backend/tests/docimport/tests_converted.py
|
||||||
|
@@ -102,6 +102,7 @@ class TestConvertedImport(unittest.TestCase):
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
+ @unittest.skip("flaky test: https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700")
|
||||||
|
def test_import_duplicated_docx(self):
|
||||||
|
with tempfile.TemporaryDirectory() as tmp_dir:
|
||||||
|
self.config.settings = {
|
@ -31,7 +31,14 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
sourceRoot = "source/paperwork-backend";
|
sourceRoot = "source/paperwork-backend";
|
||||||
|
|
||||||
patchPhase = ''
|
patches = [
|
||||||
|
# disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700
|
||||||
|
./flaky_test.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
patchFlags = [ "-p2" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
echo 'version = "${version}"' > src/paperwork_backend/_version.py
|
echo 'version = "${version}"' > src/paperwork_backend/_version.py
|
||||||
chmod a+w -R ..
|
chmod a+w -R ..
|
||||||
patchShebangs ../tools
|
patchShebangs ../tools
|
||||||
|
Loading…
Reference in New Issue
Block a user