diff options
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.patch | 31 |
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 @@ | |||
1 | From 5f005830eea7d03c02107a3a3fc58907b0a037bf Mon Sep 17 00:00:00 2001 | ||
2 | From: Alejandro del Castillo <alejandro.delcastillo@ni.com> | ||
3 | Date: Mon, 8 Apr 2019 11:14:56 -0500 | ||
4 | Subject: [PATCH] regress/issue72.py: resolve paths before comparision | ||
5 | |||
6 | In systems that have a volatile /tmp, the test incorrectly fails since | ||
7 | it doesn't resolve the real path in all cases. | ||
8 | |||
9 | Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> | ||
10 | --- | ||
11 | Upstream-Status: Submitted | ||
12 | |||
13 | tests/regress/issue72.py | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/tests/regress/issue72.py b/tests/regress/issue72.py | ||
17 | index 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 | -- | ||
30 | 2.20.1 | ||
31 | |||