| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh" |
| 4 | |
| 5 | begin_test "logs" |
| 6 | ( |
| 7 | set -e |
| 8 | |
| 9 | mkdirscip-shell system . . mkdir. logs |
| 10 | cd logs |
| 11 | gitscip-shell system . . git. init |
| 12 | |
| 13 | boomtownExit="" |
| 14 | set +e |
| 15 | gitscip-shell system . . git. lfs logs boomtown |
| 16 | boomtownExit=$? |
| 17 | set -e |
| 18 | |
| 19 | [scip-shell system . . `[`. "$boomtownExit" = "2" ] |
| 20 | |
| 21 | logname=`lsscip-shell system . . ls. .git/lfs/logs` |
| 22 | logfile=".git/lfs/logs/$logname" |
| 23 | catscip-shell system . . cat. "$logfile" |
| 24 | echoscip-shell system . . echo. "... grep ..." |
| 25 | grepscip-shell system . . grep. "$ git-lfs logs boomtown" "$logfile" |
| 26 | |
| 27 | [scip-shell system . . `[`. "$(catscip-shell system . . cat. "$logfile")" = "$(gitscip-shell system . . git. lfs logs last)" ] |
| 28 | ) |
| 29 | end_test |