File: 0009-skip-two-tests-on-ppc64.patch

package info (click to toggle)
kitty 0.41.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 25,052 kB
  • sloc: ansic: 81,083; python: 54,159; objc: 4,934; sh: 1,282; xml: 364; makefile: 143; javascript: 78
file content (34 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Disable two tests that are failing on ppc64el
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: https://github.com/kovidgoyal/kitty/issues/6636
Last-Update: 2023-11-17
--- a/kitty_tests/file_transmission.py
+++ b/kitty_tests/file_transmission.py
@@ -3,9 +3,11 @@
 
 
 import os
+import platform
 import shutil
 import stat
 import tempfile
+import unittest
 from collections import namedtuple
 from contextlib import contextmanager
 from pathlib import Path
@@ -473,6 +475,7 @@
         os.remove(os.path.join(dest, 'sym'))
         shutil.rmtree(os.path.join(dest, 'sub'))
 
+    @unittest.skipIf(platform.machine() == 'ppc64le', "Failing test on ppc64el")
     def test_transfer_receive(self):
         self.direction_receive = True
         self.basic_transfer_tests()
@@ -505,6 +508,7 @@
         self.setup_dirs()
         self.mirror_test(self.kitty_home, self.kitten_home)
 
+    @unittest.skipIf(platform.machine() == 'ppc64le', "Failing test on ppc64el")
     def test_transfer_send(self):
         self.basic_transfer_tests()
         src = os.path.join(self.tdir, 'src')