File: 0002-Run-automated-tests-against-installed-UtliSnips.patch

package info (click to toggle)
vim-ultisnips 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,924 kB
  • sloc: python: 8,353; sh: 64; makefile: 38
file content (26 lines) | stat: -rw-r--r-- 942 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
From 9d1c349691f60ec3625400530c8134def6cd3993 Mon Sep 17 00:00:00 2001
From: Nicholas Guriev <nicholas@guriev.su>
Date: Wed, 13 Jul 2022 17:44:44 +0300
Subject: Run automated tests against installed UtliSnips

---
 test/vim_test_case.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/vim_test_case.py b/test/vim_test_case.py
index d6d309a..b0a8b2d 100644
--- a/test/vim_test_case.py
+++ b/test/vim_test_case.py
@@ -102,10 +102,8 @@ class VimTestCase(unittest.TestCase, TempFileManager):
 
         vim_config = []
         vim_config.append("set nocompatible")
-        vim_config.append(
-            "set runtimepath=$VIMRUNTIME,%s,%s"
-            % (os.path.dirname(os.path.dirname(__file__)), self._temp_dir)
-        )
+        vim_config.append("set runtimepath=$VIMRUNTIME,%s" % self._temp_dir)
+        vim_config.append("packadd! ultisnips")
 
         if self.plugins:
             self._link_file(