Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 19, 2024
1 parent 8a08e9f commit 013ad9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion server/autotest_server/testers/haskell/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def install():
resolver = "lts-16.17"
cmd = ["stack", "build", "--resolver", resolver, "--system-ghc", *HASKELL_TEST_DEPS]
subprocess.run(cmd, check=True)
subprocess.run(os.path.join(os.path.dirname(os.path.realpath(__file__)), "stack_permissions.sh"), check=True, shell=True)
subprocess.run(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "stack_permissions.sh"), check=True, shell=True
)


def settings():
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "settings_schema.json")) as f:
Expand Down
5 changes: 3 additions & 2 deletions server/autotest_server/tests/test_autotest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def test_sticky():

assert os.path.exists(path) is False


def test_stack_permissions():
stack_root = os.environ['STACK_ROOT']
stack_root = os.environ["STACK_ROOT"]
path = f"{stack_root}/stack.sqlite3.pantry-write-lock"
permissions = oct(os.stat(path).st_mode)[-3:]
assert permissions[1] == '6'
assert permissions[1] == "6"

0 comments on commit 013ad9d

Please sign in to comment.