Skip to content

Commit

Permalink
[Test] Set umask where it's useful
Browse files Browse the repository at this point in the history
  • Loading branch information
fatalbanana committed Nov 13, 2023
1 parent b661260 commit 65c3e58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ local pipeline(arch) = {
'cd /rspamd/build',
'ulimit -c unlimited',
'ulimit -s unlimited',
'umask 0000',
'set +e',
'RSPAMD_INSTALLROOT=/rspamd/install robot --removekeywords wuks --exclude isbroken $DRONE_WORKSPACE/test/functional/cases; EXIT_CODE=$?',
'set -e',
Expand Down
4 changes: 1 addition & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
"cd /rspamd/build",
"ulimit -c unlimited",
"ulimit -s unlimited",
"umask 0000",
"set +e",
"RSPAMD_INSTALLROOT=/rspamd/install robot --removekeywords wuks --exclude isbroken $DRONE_WORKSPACE/test/functional/cases; EXIT_CODE=$?",
"set -e",
Expand Down Expand Up @@ -353,7 +352,6 @@
"cd /rspamd/build",
"ulimit -c unlimited",
"ulimit -s unlimited",
"umask 0000",
"set +e",
"RSPAMD_INSTALLROOT=/rspamd/install robot --removekeywords wuks --exclude isbroken $DRONE_WORKSPACE/test/functional/cases; EXIT_CODE=$?",
"set -e",
Expand Down Expand Up @@ -561,7 +559,7 @@
}
---
{
"hmac": "6c89d1423ccbddbfac9e2b67f24192018670209a293cfee308880a16a2f2b372",
"hmac": "1fb0cd2235d6c518d809751b4b263601285c5554863c89c19bd325af38207bce",
"kind": "signature"
}
...
2 changes: 2 additions & 0 deletions test/functional/util/dummy_p0f.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def cleanup(SOCK):
p0f_status = 'ok'
p0f_os = 'linux'

os.umask(0000)

alen = len(sys.argv)
if alen > 1:
SOCK = sys.argv[1]
Expand Down

0 comments on commit 65c3e58

Please sign in to comment.