From 221d85ebbe1713287e20fb1e789e15e9c3526221 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Mon, 1 Mar 2021 10:39:18 -0800 Subject: [PATCH] test: add permissions to extracted test directory The hope is this will prevent the permission errors in the OCaml tests --- .drone.yml | 1 + bin/extract_tests.xsh | 1 + 2 files changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index fad4086..e1363ac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,6 +70,7 @@ steps: - name: ocaml_tests image: ocaml/opam commands: + - ls -als tests/extracted - bin/run_tests ocaml ml volumes: diff --git a/bin/extract_tests.xsh b/bin/extract_tests.xsh index 7cf131a..1d8c59f 100644 --- a/bin/extract_tests.xsh +++ b/bin/extract_tests.xsh @@ -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)