We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 966ccd7 + 0efccd4 commit 103cb60Copy full SHA for 103cb60
tests/plugins1/_batch_test/test/qlib.py
@@ -1,17 +1,20 @@
1
#!/usr/bin/python3
2
import json
3
import logging
4
+import os
5
import tempfile
6
from datetime import timedelta, datetime
7
from pathlib import Path
8
from typing import Dict, Optional, cast
9
10
from filelock import FileLock
11
12
+
13
+uid = os.getuid()
14
tmp = tempfile.gettempdir()
-lock_file = Path(tmp) / 'qlist.lock'
-state_file = Path(tmp) / 'qlist'
-log_file = Path(tmp) / 'qlist.log'
15
+lock_file = Path(tmp) / ('qlist-%s.lock' % uid)
16
+state_file = Path(tmp) / ('qlist-%s' % uid)
17
+log_file = Path(tmp) / ('qlist-%s.log' % uid)
18
my_dir = Path(__file__).parent
19
20
0 commit comments