test: add permissions to extracted test directory
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:
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 - 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:

View File

@ -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)