@@ -18,21 +18,24 @@ if test -n "$S3_ACCESS_KEY_ID"; then
1818fi
1919
2020test_expect_success ' Started instance with content.hash=sha1' '
21- OUT=$(flux start -o,-Scontent.hash=sha1 \
22- flux getattr content.hash) && test "$OUT" = "sha1"
21+ OUT=$(flux start -o,-Scontent.hash=sha1 \
22+ flux getattr content.hash) &&
23+ test "$OUT" = "sha1"
2324'
2425
2526test_expect_success ' Started instance with content.hash=sha256' '
26- OUT=$(flux start -o,-Scontent.hash=sha256 \
27- flux getattr content.hash) && test "$OUT" = "sha256"
27+ OUT=$(flux start -o,-Scontent.hash=sha256 \
28+ flux getattr content.hash) &&
29+ test "$OUT" = "sha256"
2830'
2931
3032test_expect_success ' Started instance with content.hash=sha256,content-files' '
31- OUT=$(flux start -o,-Scontent.hash=sha256 \
32- -o,-Scontent.backing-module=content-files \
33- -o,-Sstatedir=$(pwd) \
34- flux getattr content.hash) && test "$OUT" = "sha256" &&
35- ls -1 content.files | tail -1 | grep sha256
33+ OUT=$(flux start -o,-Scontent.hash=sha256 \
34+ -o,-Scontent.backing-module=content-files \
35+ -o,-Sstatedir=$(pwd) \
36+ flux getattr content.hash) &&
37+ test "$OUT" = "sha256" &&
38+ ls -1 content.files | tail -1 | grep sha256
3639'
3740
3841test_expect_success S3 ' create creds.toml from env' '
@@ -55,20 +58,20 @@ test_expect_success S3 'create content-s3.toml from env' '
5558'
5659
5760test_expect_success S3 ' Started instance with content.hash=sha256,content-s3' '
58- OUT=$(flux start -o,-Scontent.hash=sha256 \
59- -o,-Scontent.backing-module=content-s3 \
60- flux getattr content.hash) && test "$OUT" = "sha256" &&
61- ls -1 content.files | tail -1 | grep sha256
61+ OUT=$(flux start -o,-Scontent.hash=sha256 \
62+ -o,-Scontent.backing-module=content-s3 \
63+ flux getattr content.hash) &&
64+ test "$OUT" = " sha256"
6265'
6366test_expect_success S3 ' Content store nil returns correct hash for sha256' '
64- OUT=$(flux start -o,-Scontent.hash=sha256 \
65- -o,-Scontent.backing-module=content-s3 \
66- flux content store </dev/null) &&
67- test "$OUT" = "$nil256"
67+ OUT=$(flux start -o,-Scontent.hash=sha256 \
68+ -o,-Scontent.backing-module=content-s3 \
69+ flux content store </dev/null) &&
70+ test "$OUT" = "$nil256"
6871'
6972
7073test_expect_success ' Attempt to start instance with invalid hash fails hard' '
71- test_must_fail flux start -o,-Scontent.hash=wronghash /bin/true
74+ test_must_fail flux start -o,-Scontent.hash=wronghash /bin/true
7275'
7376
7477test_done
0 commit comments