@@ -166,9 +166,14 @@ function prep_test_mac {
166166 fi
167167
168168 # Cleanup background processes on exit.
169+ <<< <<< < HEAD
169170 # Note: can't use local - the trap fires after function scope is gone.
170171 _bg_pids=()
171172 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)
172177
173178 # Start Verdaccio in offline mode (no uplinks), bound to all interfaces.
174179 cat > /tmp/verdaccio-mac-test.yaml << EOF
@@ -190,13 +195,21 @@ logs: { type: stdout, format: pretty, level: warn }
190195EOF
191196
192197 verdaccio --config /tmp/verdaccio-mac-test.yaml --listen 0.0.0.0:$verdaccio_port & > /dev/null &
198+ <<< <<< < HEAD
193199 _bg_pids+=($! )
200+ =======
201+ pids+=($! )
202+ >>>>>>> 44e1ce22abb (fix: some mac install fixes)
194203 while ! nc -z localhost $verdaccio_port & > /dev/null; do sleep 1; done
195204 echo " Verdaccio running on 0.0.0.0:$verdaccio_port "
196205
197206 # Serve bin/ directory over HTTP to mimic S3-hosted install scripts.
198207 python3 -m http.server $http_port --directory ./bin --bind 0.0.0.0 & > /dev/null &
208+ <<< <<< < HEAD
199209 _bg_pids+=($! )
210+ =======
211+ pids+=($! )
212+ >>>>>>> 44e1ce22abb (fix: some mac install fixes)
200213 while ! nc -z localhost $http_port & > /dev/null; do sleep 1; done
201214 echo " HTTP server running on 0.0.0.0:$http_port (serving ./bin/)"
202215}
@@ -218,24 +231,38 @@ function install_on_mac_vm {
218231 # Point npm at local Verdaccio and scripts at local HTTP server.
219232 export npm_config_registry=http://$host_ip :$verdaccio_port
220233 export INSTALL_URI=http://$host_ip :$http_port
234+ <<<<<<< HEAD
221235 export INFRA_VERSION=0.0.1
222236 export NO_NEW_SHELL=1
237+ =======
238+ export NO_NEW_SHELL=1
239+ export NON_INTERACTIVE=1
240+ >>>>>>> 44e1ce22abb (fix: some mac install fixes)
223241
224242 touch \$ HOME/.zshrc
225243 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
226244 . "\$ HOME/.nvm/nvm.sh"
227245
228246 echo
229247 echo "Running aztec install script..."
248+ <<<<<<< HEAD
230249 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)
231253
232254 # Fake fresh shell.
233255 export PATH="\$ HOME/.aztec/current/bin:\$ HOME/.aztec/current/node_modules/.bin:\$ HOME/.aztec/bin:\$ PATH"
234256 . "\$ HOME/.nvm/nvm.sh"
235257
236258 # Verify installation.
259+ <<<<<<< HEAD
237260 aztec-nargo --version
238261 aztec-bb --version
262+ =======
263+ nargo --version
264+ bb --version
265+ >>>>>>> 44e1ce22abb (fix: some mac install fixes)
239266 aztec --version
240267REMOTE_EOF
241268}
@@ -256,20 +283,29 @@ export -f install_on_mac_vm launch_and_install_on_mac_vm
256283
257284# Assumes a macos vm is already running.
258285# Starts services, and runs install script on the mac vm via ssh.
286+ <<< <<< < HEAD
259287function test_on_mac_vm {
260288 local mac_name=" ${1:? Mac vm name (e.g. 14)} "
261289 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)
262295 prep_test_mac
263296 install_on_mac_vm $mac_name
264297}
265298
299+ <<< <<< < HEAD
266300function test_mac {
267301 local mac_name=" ${1:? Mac vm name (e.g. 14)} "
268302 echo_header " aztec-up test_mac"
269303 prep_test_mac
270304 launch_and_install_on_mac_vm $mac_name
271305}
272306
307+ =======
308+ >>>>>>> 44e1ce22abb (fix: some mac install fixes)
273309# Starts services, launches a mac vm for each version and runs install script via ssh.
274310function test_macs {
275311 echo_header " aztec-up test_macs"
0 commit comments