test: add permissions to extracted test directory
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
The hope is this will prevent the permission errors in the OCaml tests
This commit is contained in:
parent
dc19df8811
commit
221d85ebbe
@ -70,6 +70,7 @@ steps:
|
|||||||
- name: ocaml_tests
|
- name: ocaml_tests
|
||||||
image: ocaml/opam
|
image: ocaml/opam
|
||||||
commands:
|
commands:
|
||||||
|
- ls -als tests/extracted
|
||||||
- bin/run_tests ocaml ml
|
- bin/run_tests ocaml ml
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -19,6 +19,7 @@ EXP = 'expect'
|
|||||||
for path in TEST_LIST:
|
for path in TEST_LIST:
|
||||||
destdir = pf"{DESTINATION}/{path.stem}"
|
destdir = pf"{DESTINATION}/{path.stem}"
|
||||||
mkdir -p @(destdir)
|
mkdir -p @(destdir)
|
||||||
|
chmod ugo+rwx @(destdir)
|
||||||
contents = path.read_text()
|
contents = path.read_text()
|
||||||
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
|
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
|
||||||
testit = iter(tests)
|
testit = iter(tests)
|
||||||
|
Loading…
Reference in New Issue
Block a user