Skip to content

Commit

Permalink
Merge branch 'stack-post-install' of https://github.com/pretendWhale/…
Browse files Browse the repository at this point in the history
…markus-autotesting into stack-post-install
  • Loading branch information
pretendWhale committed Apr 19, 2024
2 parents 366cd8d + 013ad9d commit 8d19752
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 8d19752

Please sign in to comment.