From 390e0cdd2bfc3db2d7573ced53e404f72f323584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Mon, 13 Nov 2023 11:30:03 +0100 Subject: [PATCH] Make test more compatible (`pushd` is bash only) --- tests/test-dirs/locate/local-build-scheme.t | 24 +++++++++------------ 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/tests/test-dirs/locate/local-build-scheme.t b/tests/test-dirs/locate/local-build-scheme.t index 73ec0ca90b..45895d4240 100644 --- a/tests/test-dirs/locate/local-build-scheme.t +++ b/tests/test-dirs/locate/local-build-scheme.t @@ -23,29 +23,25 @@ > () > EOF - $ pushd experimental >/dev/null + $ cd experimental $ $OCAMLC -keep-locs -bin-annot m_intf.ml exp.ml - $ popd >/dev/null + $ cd .. - $ pushd unix >/dev/null + $ cd unix $ $OCAMLC -keep-locs -bin-annot m_intf.ml unix.ml - $ popd >/dev/null + $ cd .. $ $OCAMLC -keep-locs -bin-annot -I experimental/ -I linux/ hack.ml $ $MERLIN single locate -position 2:12 -look-for implementation \ > -build-path experimental -build-path unix \ > -source-path . -source-path unix -source-path experimental \ - > -filename hack.ml -filename hack.ml