@@ -14,41 +14,41 @@ get_size() {
1414
1515echo ' foo bar' > " ${tempdir} " /a
1616
17- ./ truncate.py -s 3 " ${tempdir} " /a
17+ python -m userland truncate -s 3 " ${tempdir} " /a
1818
1919test " $( cat " ${tempdir} " /a) " = ' foo'
2020
2121# # size extension
2222
23- ./ truncate.py -s +7 " ${tempdir} " /a
23+ python -m userland truncate -s +7 " ${tempdir} " /a
2424
2525size=" $( get_size " ${tempdir} " /a) "
2626test " ${size} " = 10
2727
2828# # ensure minimum size
2929
30- ./ truncate.py -s ' >5' " ${tempdir} " /a
30+ python -m userland truncate -s ' >5' " ${tempdir} " /a
3131
3232size=" $( get_size " ${tempdir} " /a) "
3333test " ${size} " = 10
3434
3535# # truncate to maximum size
3636
37- ./ truncate.py -s ' <8' " ${tempdir} " /a
37+ python -m userland truncate -s ' <8' " ${tempdir} " /a
3838
3939size=" $( get_size " ${tempdir} " /a) "
4040test " ${size} " = 8
4141
4242# # round size to multiple
4343
44- ./ truncate.py -s %5 " ${tempdir} " /a
44+ python -m userland truncate -s %5 " ${tempdir} " /a
4545
4646size=" $( get_size " ${tempdir} " /a) "
4747test " ${size} " = 10
4848
4949# # ensure size is multiple
5050
51- ./ truncate.py -s /2 " ${tempdir} " /a
51+ python -m userland truncate -s /2 " ${tempdir} " /a
5252
5353size=" $( get_size " ${tempdir} " /a) "
5454test " ${size} " = 10
@@ -57,21 +57,21 @@ test "${size}" = 10
5757
5858touch " ${tempdir} " /b
5959
60- ./ truncate.py -r " ${tempdir} " /a " ${tempdir} " /b
60+ python -m userland truncate -r " ${tempdir} " /a " ${tempdir} " /b
6161
6262size=" $( get_size " ${tempdir} " /b) "
6363test " ${size} " = 10
6464
6565# # truncate with reference file and size adjustment
6666
67- ./ truncate.py -r " ${tempdir} " /a -s +10 " ${tempdir} " /b
67+ python -m userland truncate -r " ${tempdir} " /a -s +10 " ${tempdir} " /b
6868
6969size=" $( get_size " ${tempdir} " /b) "
7070test " ${size} " = 20
7171
7272# # truncate with block size
7373
74- ./ truncate.py -s 0 -o " ${tempdir} " /a
74+ python -m userland truncate -s 0 -o " ${tempdir} " /a
7575
7676test ! -s " ${tempdir} " /a
7777
0 commit comments