Skip to content

Commit

Permalink
Make ls ordering deterministic in mock/all test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jul 2, 2018
1 parent 1bd98b6 commit 3d07e01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions doc/xml/release.xml
Expand Up @@ -140,6 +140,10 @@
<release-item>
<p>Update parameters for <file>VBoxService</file> start.</p>
</release-item>

<release-item>
<p>Make <file>ls</file> ordering deterministic in <id>mock</id>/<id>all</id> test.</p>
</release-item>
</release-development-list>
</release-test-list>
</release>
Expand Down
6 changes: 3 additions & 3 deletions test/expect/mock-all-001.log
Expand Up @@ -5201,13 +5201,14 @@ info bogus stanza - bogus stanza (db-master host)
}
]

> ls -1R [TEST_PATH]/db-master/repo/backup/db/backup.history
> ls -1Rtr [TEST_PATH]/db-master/repo/backup/db/backup.history
------------------------------------------------------------------------------------------------------------------------------------
[TEST_PATH]/db-master/repo/backup/db/backup.history:
[YEAR-1]

[TEST_PATH]/db-master/repo/backup/db/backup.history/[YEAR-1]:
[BACKUP-FULL-1].manifest.gz
[BACKUP-FULL-2].manifest.gz
[BACKUP-INCR-1].manifest.gz
[BACKUP-INCR-2].manifest.gz
[BACKUP-DIFF-1].manifest.gz
Expand All @@ -5217,9 +5218,8 @@ info bogus stanza - bogus stanza (db-master host)
[BACKUP-DIFF-3].manifest.gz
[BACKUP-INCR-5].manifest.gz
[BACKUP-DIFF-4].manifest.gz
[BACKUP-FULL-2].manifest.gz
[BACKUP-DIFF-5].manifest.gz
[BACKUP-FULL-3].manifest.gz
[BACKUP-DIFF-5].manifest.gz

diff backup - config file warning on local (db-master host)
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --log-level-console=info 2>&1 --type=diff --stanza=db backup
Expand Down
2 changes: 1 addition & 1 deletion test/lib/pgBackRestTest/Module/Mock/MockAllTest.pm
Expand Up @@ -1265,7 +1265,7 @@ sub run
#---------------------------------------------------------------------------------------------------------------------------
if (!$bRemote && !$bS3)
{
executeTest('ls -1R ' . storageRepo()->pathGet('backup/' . $self->stanza() . '/' . PATH_BACKUP_HISTORY),
executeTest('ls -1Rtr ' . storageRepo()->pathGet('backup/' . $self->stanza() . '/' . PATH_BACKUP_HISTORY),
{oLogTest => $self->expect(), bRemote => $bRemote});
}

Expand Down

0 comments on commit 3d07e01

Please sign in to comment.