File: 0002-Disable-permission-related-tests.patch

package info (click to toggle)
golang-github-azure-go-autorest 8.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, experimental
  • size: 728 kB
  • ctags: 1,266
  • sloc: makefile: 4
file content (30 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download
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
From: Shengjing Zhu <i@zhsj.me>
Date: Wed, 16 Aug 2017 21:37:57 +0800
Subject: Disable permission related tests

Forwarded: not-needed
Signed-off-by: Shengjing Zhu <i@zhsj.me>
---
 autorest/adal/persist_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/autorest/adal/persist_test.go b/autorest/adal/persist_test.go
index 12c7ecb..a826bef 100644
--- a/autorest/adal/persist_test.go
+++ b/autorest/adal/persist_test.go
@@ -133,6 +133,7 @@ func TestSaveToken(t *testing.T) {
 }
 
 func TestSaveTokenFailsNoPermission(t *testing.T) {
+	t.Skip("In Debian, the test is run by root.")
 	pathWhereWeShouldntHavePermission := "/usr/thiswontwork/atall"
 	if runtime.GOOS == "windows" {
 		pathWhereWeShouldntHavePermission = path.Join(os.Getenv("windir"), "system32\\mytokendir\\mytoken")
@@ -145,6 +146,7 @@ func TestSaveTokenFailsNoPermission(t *testing.T) {
 }
 
 func TestSaveTokenFailsCantCreate(t *testing.T) {
+	t.Skip("In Debian, the test is run by root.")
 	tokenPath := "/thiswontwork"
 	if runtime.GOOS == "windows" {
 		tokenPath = path.Join(os.Getenv("windir"), "system32")