Update test to match new error message.

This commit is contained in:
Ben Radford 2023-05-18 14:36:24 +01:00
parent 8ffeb1c4e5
commit 0c36fe6c8c
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5

View file

@ -12,7 +12,7 @@ happy () {
## Testing read-only mode without forcing the underlying store to actually be read-only
# Make sure the command fails when the store doesn't already have a database
expectStderr 1 nix-store --store local?read-only=true --add dummy | grepQuiet "unable to create database while in read-only mode"
expectStderr 1 nix-store --store local?read-only=true --add dummy | grepQuiet "database does not exist, and cannot be created in read-only mode"
# Make sure the store actually has a current-database, with at least one store object
dummyPath=$(nix-store --add dummy)