Skip to content

Commit

Permalink
Tests: Move box test artifacts to a temp directory (#4771)
Browse files Browse the repository at this point in the history
  • Loading branch information
algochoi authored Nov 8, 2022
1 parent 5c97463 commit e6172bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/scripts/e2e_subs/box-search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ BOX_LIST=$(${gcmd} app box list --app-id "$APPID" --max 4)

BOX_NAME="str:great box"
echo "Create $BOX_NAME"
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --box "$BOX_NAME" --app-arg "str:create" --app-arg "$BOX_NAME" -o box_create.txn
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --box "$BOX_NAME" --app-arg "str:create" --app-arg "$BOX_NAME" -o "$TEMPDIR/box_create.txn"

echo "Set $BOX_NAME using $BOX_VALUE"
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --app-arg "str:set" --app-arg "$BOX_NAME" --app-arg "str:$BOX_VALUE" -o box_set.txn
${gcmd} app call --from "$ACCOUNT" --app-id "$APPID" --app-arg "str:set" --app-arg "$BOX_NAME" --app-arg "str:$BOX_VALUE" -o "$TEMPDIR/box_set.txn"

# Group them, sign and broadcast:
cat box_create.txn box_set.txn > box_create_n_set.txn
${gcmd} clerk group -i box_create_n_set.txn -o box_group.txn
${gcmd} clerk sign -i box_group.txn -o box_group.stx
${gcmd} clerk rawsend -f box_group.stx
cat "$TEMPDIR/box_create.txn" "$TEMPDIR/box_set.txn" > "$TEMPDIR/box_create_n_set.txn"
${gcmd} clerk group -i "$TEMPDIR/box_create_n_set.txn" -o "$TEMPDIR/box_group.txn"
${gcmd} clerk sign -i "$TEMPDIR/box_group.txn" -o "$TEMPDIR/box_group.stx"
${gcmd} clerk rawsend -f "$TEMPDIR/box_group.stx"

echo "Confirm that NAME $BOX_NAME as expected"
${gcmd} app box info --app-id "$APPID" --name "$BOX_NAME"
Expand Down

0 comments on commit e6172bc

Please sign in to comment.