]> arthur.barton.de Git - bup.git/blobdiff - t/test-meta.sh
Merge branch 'master' into meta
[bup.git] / t / test-meta.sh
index 8d565b63511b841bd034fda042ffb9b8ec4e4c52..032d1583718f2af15df2d8ab36974e6e75549628 100755 (executable)
@@ -124,10 +124,10 @@ if actually-root; then
             mkdir testfs/src/foo
             touch testfs/src/bar
             PYTHONPATH="$TOP/lib" \
-                python -c "from bup.xstat import lutime, FSTime; \
-                x = FSTime.from_secs(42);\
-                   lutime('testfs/src/foo', (x, x));\
-                   lutime('testfs/src/bar', (x, x));"
+                python -c "from bup import xstat; \
+                x = xstat.timespec_to_nsecs((42, 0));\
+                   xstat.lutime('testfs/src/foo', (x, x));\
+                   xstat.lutime('testfs/src/bar', (x, x));"
             cd testfs
             WVPASS bup meta -v --create --recurse --file src.meta src
             bup meta -tvf src.meta