]> arthur.barton.de Git - bup.git/blobdiff - t/test-meta.sh
Replace os.*stat() with xstat.*stat(); use integer ns for all fs times.
[bup.git] / t / test-meta.sh
index 9e85cfc6c4f22050baa5ff874fffa70845b1233c..830e2cf393fe3e6e577c5bb6f024defe2b567459 100755 (executable)
@@ -122,10 +122,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