test: add permissions to extracted test directory

The hope is this will prevent the permission errors in the
  OCaml tests
This commit is contained in:
Glen Whitney 2021-03-01 10:39:18 -08:00
parent dc19df8811
commit 221d85ebbe
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ steps:
- name: ocaml_tests
image: ocaml/opam
commands:
- ls -als tests/extracted
- bin/run_tests ocaml ml
volumes:

View File

@ -19,6 +19,7 @@ EXP = 'expect'
for path in TEST_LIST:
destdir = pf"{DESTINATION}/{path.stem}"
mkdir -p @(destdir)
chmod ugo+rwx @(destdir)
contents = path.read_text()
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
testit = iter(tests)