Rename flush-cache.py to flush-cache, and rearrange the code a bit.
It was working fine, but the style wasn't exactly the way I like it, because I'm unnecessarily picky. :) Also, removed the file extension since we should probably learn from the fact that it's already been rewritten once from one language to another. Who knows, maybe it will be again someday.
This commit is contained in:
parent
d039aad57b
commit
94c254de77
12 changed files with 47 additions and 51 deletions
|
|
@ -5,21 +5,22 @@ redo t/always1
|
|||
cd t
|
||||
[ "$(wc -l <always1.log)" -eq 1 ] || exit 11
|
||||
|
||||
# This shouldn't rebuild, but because other people might be running flush-cache.py
|
||||
# in parallel with us, we can't be 100% sure it won't. So don't test it.
|
||||
# This shouldn't rebuild, but because other people might be running
|
||||
# flush-cache in parallel with us, we can't be 100% sure it won't. So don't
|
||||
# test it.
|
||||
#redo-ifchange always1
|
||||
#[ "$(wc -l <always1.log)" -eq 1 ] || exit 21
|
||||
|
||||
./flush-cache.py
|
||||
./flush-cache
|
||||
redo-ifchange always1
|
||||
. ./skip-if-minimal-do.sh
|
||||
[ "$(wc -l <always1.log)" -eq 2 ] || exit 31
|
||||
|
||||
./flush-cache.py
|
||||
./flush-cache
|
||||
redo-ifchange always1
|
||||
[ "$(wc -l <always1.log)" -eq 3 ] || exit 41
|
||||
|
||||
cd ..
|
||||
./t/flush-cache.py
|
||||
./t/flush-cache
|
||||
redo-ifchange t/always1
|
||||
[ "$(wc -l <t/always1.log)" -eq 4 ] || exit 51
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue