@@ -86,7 +86,7 @@ SANDBOX_NAME="${NEMOCLAW_SANDBOX_NAME:-e2e-nightly}"
8686section " Phase 0: Pre-cleanup"
8787info " Destroying any leftover sandbox/gateway from previous runs..."
8888if command -v nemoclaw > /dev/null 2>&1 ; then
89- nemoclaw " $SANDBOX_NAME " destroy 2> /dev/null || true
89+ nemoclaw " $SANDBOX_NAME " destroy --yes 2> /dev/null || true
9090fi
9191if command -v openshell > /dev/null 2>&1 ; then
9292 openshell sandbox delete " $SANDBOX_NAME " 2> /dev/null || true
187187 exit 1
188188fi
189189
190- nemoclaw --help > /dev/null 2>&1 \
191- && pass " nemoclaw --help exits 0" \
192- || fail " nemoclaw --help failed"
190+ nemoclaw --help > /dev/null 2>&1 &&
191+ pass " nemoclaw --help exits 0" ||
192+ fail " nemoclaw --help failed"
193193
194194# ══════════════════════════════════════════════════════════════════
195195# Phase 3: Sandbox verification
@@ -198,9 +198,9 @@ section "Phase 3: Sandbox verification"
198198
199199# 3a: nemoclaw list
200200if list_output=$( nemoclaw list 2>&1 ) ; then
201- echo " $list_output " | grep -Fq -- " $SANDBOX_NAME " \
202- && pass " nemoclaw list contains '${SANDBOX_NAME} '" \
203- || fail " nemoclaw list does not contain '${SANDBOX_NAME} '"
201+ echo " $list_output " | grep -Fq -- " $SANDBOX_NAME " &&
202+ pass " nemoclaw list contains '${SANDBOX_NAME} '" ||
203+ fail " nemoclaw list does not contain '${SANDBOX_NAME} '"
204204else
205205 fail " nemoclaw list failed: ${list_output: 0: 200} "
206206fi
216216# 3c: Inference must be configured by onboard (no fallback — if onboard
217217# failed to configure it, that's a bug we want to catch)
218218if inf_check=$( openshell inference get 2>&1 ) ; then
219- echo " $inf_check " | grep -qi " nvidia-nim" \
220- && pass " Inference configured via onboard" \
221- || fail " Inference not configured — onboard did not set up nvidia-nim provider"
219+ echo " $inf_check " | grep -qi " nvidia-nim" &&
220+ pass " Inference configured via onboard" ||
221+ fail " Inference not configured — onboard did not set up nvidia-nim provider"
222222else
223223 fail " openshell inference get failed: ${inf_check: 0: 200} "
224224fi
225225
226226# 3d: Policy presets applied
227227if policy_output=$( openshell policy get --full " $SANDBOX_NAME " 2>&1 ) ; then
228- echo " $policy_output " | grep -qi " network_policies" \
229- && pass " Policy applied to sandbox" \
230- || fail " No network policy found on sandbox"
228+ echo " $policy_output " | grep -qi " network_policies" &&
229+ pass " Policy applied to sandbox" ||
230+ fail " No network policy found on sandbox"
231231
232232 # Check that at least npm or pypi preset endpoints are present (onboard auto-suggests these)
233- echo " $policy_output " | grep -qi " registry.npmjs.org\|pypi.org" \
234- && pass " Policy presets (npm/pypi) detected in sandbox policy" \
235- || skip " Could not confirm npm/pypi presets in policy (may vary by environment)"
233+ echo " $policy_output " | grep -qi " registry.npmjs.org\|pypi.org" &&
234+ pass " Policy presets (npm/pypi) detected in sandbox policy" ||
235+ skip " Could not confirm npm/pypi presets in policy (may vary by environment)"
236236else
237237 fail " openshell policy get failed: ${policy_output: 0: 200} "
238238fi
325325# ══════════════════════════════════════════════════════════════════
326326section " Phase 6: Cleanup"
327327
328- nemoclaw " $SANDBOX_NAME " destroy 2>&1 | tail -3 || true
328+ nemoclaw " $SANDBOX_NAME " destroy --yes 2>&1 | tail -3 || true
329329openshell gateway destroy -g nemoclaw 2> /dev/null || true
330330
331331list_after=$( nemoclaw list 2>&1 )
332- echo " $list_after " | grep -Fq -- " $SANDBOX_NAME " \
333- && fail " Sandbox ${SANDBOX_NAME} still in list after destroy" \
334- || pass " Sandbox ${SANDBOX_NAME} removed"
332+ echo " $list_after " | grep -Fq -- " $SANDBOX_NAME " &&
333+ fail " Sandbox ${SANDBOX_NAME} still in list after destroy" ||
334+ pass " Sandbox ${SANDBOX_NAME} removed"
335335
336336# ══════════════════════════════════════════════════════════════════
337337# Summary
0 commit comments