mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
gnu/rm: make the code reentrant
This commit is contained in:
parent
6a8d15f92e
commit
a85ee4386a
1 changed files with 5 additions and 2 deletions
|
@ -59,7 +59,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
grep -rl 'path_prepend_' tests/* | xargs sed -i 's|path_prepend_ ./src||'
|
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
|
||||||
sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*sh
|
sed -i -e 's|^seq |/usr/bin/seq |' -e 's|sha1sum |/usr/bin/sha1sum |' tests/factor/t*sh
|
||||||
|
|
||||||
# Remove tests checking for --version & --help
|
# Remove tests checking for --version & --help
|
||||||
|
@ -94,11 +94,14 @@ sed -i 's|cp |/usr/bin/cp |' tests/mv/hard-2.sh
|
||||||
sed -i 's|paste |/usr/bin/paste |' tests/misc/od-endian.sh
|
sed -i 's|paste |/usr/bin/paste |' tests/misc/od-endian.sh
|
||||||
sed -i 's|seq |/usr/bin/seq |' tests/misc/sort-discrim.sh
|
sed -i 's|seq |/usr/bin/seq |' tests/misc/sort-discrim.sh
|
||||||
|
|
||||||
#Add specific timeout to tests that currently hang to limit time spent waiting
|
# Add specific timeout to tests that currently hang to limit time spent waiting
|
||||||
sed -i 's|seq \$|/usr/bin/timeout 0.1 seq \$|' tests/misc/seq-precision.sh tests/misc/seq-long-double.sh
|
sed -i 's|seq \$|/usr/bin/timeout 0.1 seq \$|' tests/misc/seq-precision.sh tests/misc/seq-long-double.sh
|
||||||
sed -i 's|cat |/usr/bin/timeout 0.1 cat |' tests/misc/cat-self.sh
|
sed -i 's|cat |/usr/bin/timeout 0.1 cat |' tests/misc/cat-self.sh
|
||||||
|
|
||||||
|
|
||||||
|
# Remove dup of /usr/bin/ when executed several times
|
||||||
|
grep -rl '/usr/bin//usr/bin/' tests/* | xargs --no-run-if-empty sed -i 's|/usr/bin//usr/bin/|/usr/bin/|g'
|
||||||
|
|
||||||
|
|
||||||
#### Adjust tests to make them work with Rust/coreutils
|
#### Adjust tests to make them work with Rust/coreutils
|
||||||
# in some cases, what we are doing in rust/coreutils is good (or better)
|
# in some cases, what we are doing in rust/coreutils is good (or better)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue