Commit Graph

9 Commits

Author SHA1 Message Date
Raúl Benencia d12d9f2a01 test_git.sh: declare restore_opts and assign separately
This avoids masking return values. Fixes SC2155. Part of #891.
2024-06-28 11:29:31 -07:00
Raúl Benencia 0e81260572 test_git.sh: use mapfile to split command output
Fixes SC2207. Part of #891.
2024-06-28 11:28:32 -07:00
Raúl Benencia 4f0dc5679b test_git.sh: add quotes to to prevent globbing and word splitting
Fixes SC2086. Part of #891.
2024-06-28 11:28:25 -07:00
Raúl Benencia 6716848f4b test_git.sh: add '-r' to 'read' to avoid mangling backslashes
Fixes SC2162. Part of #891.
2024-06-28 11:24:30 -07:00
Raúl Benencia ae368ba2f1 test_git.sh: use parameter expansion instead of sed
Fixes SC2001. Part of #891.
2024-06-28 11:21:22 -07:00
Raúl Benencia 2ee13eb2bc test_git.sh: quote literal {}
Fixes SC1083. Part of #891.
2024-06-28 10:56:31 -07:00
Raúl Benencia 99d693d647 test_git.sh: replace test regex for glob match
Don't quote rhs of =~, it'll match literally rather than as a
regex. Fixes SC2076. Part of #891.
2024-06-28 07:09:09 -07:00
Tim Hockin f4d067c987 e2e: compare numbers numerically, not lexically
Thanks, bash, for supporting `<` and `>` and making them NOT mean the
obvious thing.

This shows up when you set RUNS=10:
`[[ 2 < 10 ]]` is false
`(( 2 < 10 ))` is true
2023-04-06 17:45:26 -07:00
Tim Hockin 3133c38442
Add a test to exercise git
I keep having to cross-check whether things work the way I think they
work.  I am codifying them into a test.
2023-02-16 12:52:58 -08:00