change waitVersion to waitForBackup

This commit is contained in:
Jon Fu 2020-09-23 16:13:30 -04:00
parent 89c334eb53
commit 7553daba20
2 changed files with 4 additions and 4 deletions

View File

@ -33,14 +33,14 @@ struct IncrementalBackupWorkload : TestWorkload {
FileBackupAgent backupAgent;
bool submitOnly;
bool restoreOnly;
bool waitVersion;
bool waitForBackup;
IncrementalBackupWorkload(WorkloadContext const& wcx) : TestWorkload(wcx) {
backupDir = getOption(options, LiteralStringRef("backupDir"), LiteralStringRef("file://simfdb/backups/"));
tag = getOption(options, LiteralStringRef("tag"), LiteralStringRef("default"));
submitOnly = getOption(options, LiteralStringRef("submitOnly"), false);
restoreOnly = getOption(options, LiteralStringRef("restoreOnly"), false);
waitVersion = getOption(options, LiteralStringRef("waitVersion"), false);
waitForBackup = getOption(options, LiteralStringRef("waitForBackup"), false);
}
virtual std::string description() { return "IncrementalBackup"; }
@ -55,7 +55,7 @@ struct IncrementalBackupWorkload : TestWorkload {
}
virtual Future<bool> check(Database const& cx) {
if (clientId || !waitVersion) {
if (clientId || !waitForBackup) {
return true;
}
return _check(cx, this);

View File

@ -22,7 +22,7 @@ simBackupAgents = 'BackupToFile'
[[test.workload]]
testName = 'IncrementalBackup'
tag = 'default'
waitVersion = true
waitForBackup = true
[[test]]
testTitle = 'SubmitRestore'