@@ -166,14 +166,9 @@ function prep_test_mac {
166166 fi
167167
168168 # Cleanup background processes on exit.
169- <<< <<< < HEAD
170169 # Note: can't use local - the trap fires after function scope is gone.
171170 _bg_pids=()
172171 trap ' kill "${_bg_pids[@]}" &>/dev/null || true' EXIT
173- =======
174- local pids=()
175- trap ' kill "${pids[@]}" &>/dev/null || true' EXIT
176- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
177172
178173 # Start Verdaccio in offline mode (no uplinks), bound to all interfaces.
179174 cat > /tmp/verdaccio-mac-test.yaml << EOF
@@ -195,21 +190,13 @@ logs: { type: stdout, format: pretty, level: warn }
195190EOF
196191
197192 verdaccio --config /tmp/verdaccio-mac-test.yaml --listen 0.0.0.0:$verdaccio_port & > /dev/null &
198- <<< <<< < HEAD
199193 _bg_pids+=($! )
200- =======
201- pids+=($! )
202- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
203194 while ! nc -z localhost $verdaccio_port & > /dev/null; do sleep 1; done
204195 echo " Verdaccio running on 0.0.0.0:$verdaccio_port "
205196
206197 # Serve bin/ directory over HTTP to mimic S3-hosted install scripts.
207198 python3 -m http.server $http_port --directory ./bin --bind 0.0.0.0 & > /dev/null &
208- <<< <<< < HEAD
209199 _bg_pids+=($! )
210- =======
211- pids+=($! )
212- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
213200 while ! nc -z localhost $http_port & > /dev/null; do sleep 1; done
214201 echo " HTTP server running on 0.0.0.0:$http_port (serving ./bin/)"
215202}
@@ -231,38 +218,24 @@ function install_on_mac_vm {
231218 # Point npm at local Verdaccio and scripts at local HTTP server.
232219 export npm_config_registry=http://$host_ip :$verdaccio_port
233220 export INSTALL_URI=http://$host_ip :$http_port
234- <<<<<<< HEAD
235221 export INFRA_VERSION=0.0.1
236222 export NO_NEW_SHELL=1
237- =======
238- export NO_NEW_SHELL=1
239- export NON_INTERACTIVE=1
240- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
241223
242224 touch \$ HOME/.zshrc
243225 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
244226 . "\$ HOME/.nvm/nvm.sh"
245227
246228 echo
247229 echo "Running aztec install script..."
248- <<<<<<< HEAD
249230 bash <(curl -sL \$ INSTALL_URI/0.0.1/aztec-install)
250- =======
251- VERSION=0.0.1 bash <(curl -sL \$ INSTALL_URI/0.0.1/aztec-install)
252- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
253231
254232 # Fake fresh shell.
255233 export PATH="\$ HOME/.aztec/current/bin:\$ HOME/.aztec/current/node_modules/.bin:\$ HOME/.aztec/bin:\$ PATH"
256234 . "\$ HOME/.nvm/nvm.sh"
257235
258236 # Verify installation.
259- <<<<<<< HEAD
260237 aztec-nargo --version
261238 aztec-bb --version
262- =======
263- nargo --version
264- bb --version
265- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
266239 aztec --version
267240REMOTE_EOF
268241}
@@ -283,29 +256,20 @@ export -f install_on_mac_vm launch_and_install_on_mac_vm
283256
284257# Assumes a macos vm is already running.
285258# Starts services, and runs install script on the mac vm via ssh.
286- <<< <<< < HEAD
287259function test_on_mac_vm {
288260 local mac_name=" ${1:? Mac vm name (e.g. 14)} "
289261 echo_header " aztec-up test_on_mac_vm"
290- =======
291- function test_mac {
292- echo_header " aztec-up test_mac"
293- local mac_name=" ${1:? Mac vm name (e.g. 14)} "
294- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
295262 prep_test_mac
296263 install_on_mac_vm $mac_name
297264}
298265
299- <<< <<< < HEAD
300266function test_mac {
301267 local mac_name=" ${1:? Mac vm name (e.g. 14)} "
302268 echo_header " aztec-up test_mac"
303269 prep_test_mac
304270 launch_and_install_on_mac_vm $mac_name
305271}
306272
307- =======
308- >>>>>>> 44e1ce22abb (fix: some mac install fixes)
309273# Starts services, launches a mac vm for each version and runs install script via ssh.
310274function test_macs {
311275 echo_header " aztec-up test_macs"
0 commit comments