Skip to content

Commit a0c910a

Browse files
gkechhors
andauthored
K8SPSMDB-1292 Trim spaces from count in check_backup_count function for e2e tests (#1923)
Co-authored-by: Viacheslav Sarzhan <slava.sarzhan@percona.com>
1 parent 6dedac1 commit a0c910a

File tree

1 file changed

+1
-0
lines changed
  • e2e-tests/scheduled-backup

1 file changed

+1
-0
lines changed

e2e-tests/scheduled-backup/run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ check_backup_count() {
2323
local expected=$2
2424

2525
local count=$(kubectl_bin get psmdb-backup -l percona.com/backup-ancestor=${ancestor} | grep ready | wc -l)
26+
count="${count//[[:space:]]/}"
2627

2728
if [[ ${count} != ${expected} ]]; then
2829
echo "${ancestor}: Expected ${expected} backups but found ${count}."

0 commit comments

Comments
 (0)