diff options
| author | Joseph Richey <joerichey@google.com> | 2022-08-18 19:06:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 19:06:15 -0700 |
| commit | a1ddf6e09af39320fee969f52d36ae0f2ca94d83 (patch) | |
| tree | be8cf4ab980e46b18316eb5f90677926ea83bedb /cli-tests/t_v1_policy.sh | |
| parent | f0c1cae003dd216ba706d7ef14df83d311c82034 (diff) | |
| parent | afad6a1e0521e52dfaffe937ecab2515a76b8134 (diff) | |
Merge pull request #362 from google/fix-cli-tests-2
cli-tests: account for protojson whitespace randomization
Diffstat (limited to 'cli-tests/t_v1_policy.sh')
| -rwxr-xr-x | cli-tests/t_v1_policy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tests/t_v1_policy.sh b/cli-tests/t_v1_policy.sh index e883dcd..46ccdaf 100755 --- a/cli-tests/t_v1_policy.sh +++ b/cli-tests/t_v1_policy.sh @@ -13,7 +13,7 @@ mkdir "$dir" chown "$TEST_USER" "$dir" _print_header "Set policy_version 1" -sed -i 's/"policy_version": "2"/"policy_version": "1"/' "$FSCRYPT_CONF" +sed -E -i 's/"policy_version": +"2"/"policy_version": "1"/' "$FSCRYPT_CONF" _print_header "Try to encrypt as root" _expect_failure "echo hunter2 | fscrypt encrypt --quiet --name=prot '$dir'" |