]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Set umask where it's useful
authorAndrew Lewis <nerf@judo.za.org>
Mon, 13 Nov 2023 14:19:06 +0000 (16:19 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 17 Nov 2023 10:41:04 +0000 (12:41 +0200)
.drone.jsonnet
.drone.yml
test/functional/util/dummy_p0f.py

index ef0f56c61f3f8eb1b3689a344f4ff13450706512..8bac34da66cd5fbbdfeec54a5ae3ac529ac7a255 100644 (file)
@@ -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',
index 196dbf9ad2375a1fbdee8ad0bb602e3663a22137..9e5c3409ee1a050ac61462494d65bc2b973fe3b8 100644 (file)
             "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",
             "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",
 }
 ---
 {
-   "hmac": "6c89d1423ccbddbfac9e2b67f24192018670209a293cfee308880a16a2f2b372",
+   "hmac": "1fb0cd2235d6c518d809751b4b263601285c5554863c89c19bd325af38207bce",
    "kind": "signature"
 }
 ...
index 2bcd183d4775701d3fbfd63fff8f412339aafaab..1d86ba0ca1d13bd7114a97e5860d38de44b032e7 100755 (executable)
@@ -66,6 +66,8 @@ if __name__ == "__main__":
     p0f_status = 'ok'
     p0f_os = 'linux'
 
+    os.umask(0000)
+
     alen = len(sys.argv)
     if alen > 1:
         SOCK = sys.argv[1]