Re: [PATCH] git-p4: parse marshal output "p4 -G" in p4 changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 June 2017 at 14:14, miguel torroja <miguel.torroja@xxxxxxxxx> wrote:
> Thanks Luke,
>
> regarding the error in t9800 (not ok 18 - unresolvable host in P4PORT
> should display error), for me it's very weird too as it doesn't seem
> to be related to this particular change, as the patch changes are not
> exercised with that test.

I had a look at this. The problem is that the old code uses
p4_read_pipe_lines() which calls sys.exit() if the subprocess fails.

But the new code calls p4CmdList() which has does error handling by
setting "p4ExitCode" to a non-zero value in the returned dictionary.

I think if you just check for that case, the test will then pass.

>
> The test 21 in t9807 was precisely the new test added to test the
> change (it was passing with local setup), the test log is truncated
> before the output of test 21 in t9807 but I'm afraid I'm not very
> familiar with Travis, so maybe I'm missing something. Is there a way
> to have the full logs or they are always truncated after some number
> of lines?

For me, t9807 is working fine.

>
> I think you get an error with git diff --check because I added spaces
> after a tab, but those spaces are intentional, the tabs are for the
> "<<-EOF" and spaces are for the "p4 triggers" specificiation.

OK.


Luke



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux