2023-04-20 23:06:24 +02:00
|
|
|
---
|
|
|
|
tests/du/move-dir-while-traversing.sh | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
2021-10-01 21:34:37 +02:00
|
|
|
Index: tests/du/move-dir-while-traversing.sh
|
|
|
|
===================================================================
|
|
|
|
--- tests/du/move-dir-while-traversing.sh.orig
|
2020-05-04 10:05:56 +02:00
|
|
|
+++ tests/du/move-dir-while-traversing.sh
|
|
|
|
@@ -20,9 +20,9 @@
|
|
|
|
print_ver_ du
|
|
|
|
require_trap_signame_
|
|
|
|
|
|
|
|
-# We use a python-inotify script, so...
|
|
|
|
-python -m pyinotify -h > /dev/null \
|
|
|
|
- || skip_ 'python inotify package not installed'
|
|
|
|
+# We use a python3-inotify script, so...
|
|
|
|
+python3 -m pyinotify -h > /dev/null \
|
|
|
|
+ || skip_ 'python3 inotify package not installed'
|
|
|
|
|
|
|
|
# Move a directory "up" while du is processing its sub-directories.
|
|
|
|
# While du is processing a hierarchy .../B/C/D/... this script
|
2021-10-01 21:34:37 +02:00
|
|
|
@@ -33,7 +33,7 @@ python -m pyinotify -h > /dev/null \
|
2020-05-04 10:05:56 +02:00
|
|
|
# rename syscall before du finishes processing the subtree under D/.
|
|
|
|
|
|
|
|
cat <<'EOF' > inotify-watch-for-dir-access.py
|
|
|
|
-#!/usr/bin/env python
|
|
|
|
+#!/usr/bin/env python3
|
|
|
|
import pyinotify as pn
|
|
|
|
import os,sys
|
|
|
|
|