Skip to content

Commit

Permalink
CBQE-4661 fix compare result output
Browse files Browse the repository at this point in the history
Change-Id: If3f3646ade460ea285b0861bb1fcd72bfddc5a89
Reviewed-on: http://review.couchbase.org/95441
Tested-by: Thuan Nguyen <soccon@gmail.com>
Reviewed-by: Aruna Piravi <aruna@couchbase.com>
  • Loading branch information
saigon authored and arunapiravi committed Jun 13, 2018
1 parent 3b4609f commit 47696a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytests/community/communitytests.py
Expand Up @@ -242,12 +242,12 @@ def check_full_backup_only(self):
output, error = self.remote.execute_command("ls -lh {0}*/"
.format(self.backup_location))
self.remote.log_command_output(output, error)
o, e = self.remote.execute_command("{0}cbtransfer -u Administrator "\
output, error = self.remote.execute_command("{0}cbtransfer -u Administrator "\
"-p password {1}*/*-full/ " \
"stdout: | grep set | uniq | wc -l"\
.format(self.bin_path,
self.backup_c_location))
self.remote.log_command_output(o, e)
self.remote.log_command_output(output, error)
if int(output[0]) != 1000:
self.fail("full backup did not work in CE. "
"Expected 1000, actual: {0}".format(output[0]))
Expand All @@ -264,13 +264,13 @@ def check_full_backup_only(self):
output, error = self.remote.execute_command("ls -lh {0}"
.format(self.backup_location))
self.remote.log_command_output(output, error)
o, e = self.remote.execute_command("{0}cbtransfer -u Administrator "\
output, error = self.remote.execute_command("{0}cbtransfer -u Administrator "\
"-p password {1}*/*-{2}/ stdout: "\
"| grep set | uniq | wc -l"\
.format(self.bin_path,
self.backup_c_location,
self.backup_option))
self.remote.log_command_output(o, e)
self.remote.log_command_output(output, error)
if int(output[0]) == 2000:
self.log.info("backup option 'diff' is enforced in CE")
elif int(output[0]) == 1000:
Expand Down

0 comments on commit 47696a4

Please sign in to comment.