summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch')
-rw-r--r--meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch b/meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch
new file mode 100644
index 0000000000..75ecb5fb42
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/0001-regress-issue72.py-resolve-paths-before-comparision.patch
@@ -0,0 +1,31 @@
1From 5f005830eea7d03c02107a3a3fc58907b0a037bf Mon Sep 17 00:00:00 2001
2From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
3Date: Mon, 8 Apr 2019 11:14:56 -0500
4Subject: [PATCH] regress/issue72.py: resolve paths before comparision
5
6In systems that have a volatile /tmp, the test incorrectly fails since
7it doesn't resolve the real path in all cases.
8
9Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
10---
11Upstream-Status: Submitted
12
13 tests/regress/issue72.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/tests/regress/issue72.py b/tests/regress/issue72.py
17index 1626877..2f24dec 100755
18--- a/tests/regress/issue72.py
19+++ b/tests/regress/issue72.py
20@@ -56,7 +56,7 @@ if not os.path.lexists("{}/{}".format(cfg.offline_root, long_filename2)):
21 "not created.")
22
23 linky = os.path.realpath("{}/{}".format(cfg.offline_root, long_filename2))
24-linky_dst = "{}/{}".format(cfg.offline_root, long_filename)
25+linky_dst = os.path.realpath("{}/{}".format(cfg.offline_root, long_filename))
26 if linky != linky_dst:
27 opk.fail("symlink path truncated.")
28
29--
302.20.1
31