|
From: | Ashi |
Subject: | Re: Enable adb port in tramp adb |
Date: | Thu, 30 Oct 2014 22:21:21 +0800 |
Ashi <address@hidden> writes:
> Hi, Michael,
Hi Zhongwei,
> I've found the reason causes the tramp-test22-file-times failed.
>
> I evaluate "(set-file-times
> "/adb:10.164.2.12#5555:data/local/tramp_testdir/tramp-test12242_Hq" '
> (0 1))", and it returns "t".
What's the time stamp then of that file on your Android? Check it with
adb itself, not with tramp-adb.
> But "(file-attributes
> "/adb:10.164.2.12#5555:data/local/tramp_testdir/tramp-test12242_Hq")"
> returns: (nil 1 0 0 (0 0) (-948638 13211) (0 0) 3 "-rw-rw-rw-" t 1 (-1
> . 6)) which causes "(should (equal (nth 5 (file-attributes tmp-name1))
> '(0 1)))" failed. And I've checked that "adb shell" has no perl(1) or
> stat (1). I think there is some problem in "set-file-times".
'(0 0) means by convention "don't know". There's already some code in
`tramp-test22-file-times' which ought to handle this. Maybe you can
steal some ideas from there?
> Best regards,
> Zhongwei
Best regards, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |