Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
tests: fix quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Apr 23, 2020
1 parent 40d5350 commit 9ff4020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/br_views_and_sequences/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ run_br restore db --db $DB -s "local://$TEST_DIR/$DB" --pd $PD_ADDR
set -x

views_count=$(run_sql "select count(*) c, sum(m) s from $DB.view_3;" | tail -2 | paste -sd ';')
[ $views_count = 'c: 8;s: 181' ]
[ "$views_count" = 'c: 8;s: 181' ]

run_sql "insert into $DB.table_2 (c) values (33);"
seq_val=$(run_sql "select a, b >= 4 as bg from $DB.table_2 where c = 33;" | tail -2 | paste -sd ';')
[ $seq_val = 'a: 8;bg: 1' ]
[ "$seq_val" = 'a: 8;bg: 1' ]

0 comments on commit 9ff4020

Please sign in to comment.