comparison tests/test-evolve-cycles.t @ 5613:87966baf6ea9

tests: use appropriate Python (2 or 3) for json.tool
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 25 Oct 2020 21:38:37 +0800
parents e8660b28bfee
children
comparison
equal deleted inserted replaced
5612:6576f6bb644b 5613:87966baf6ea9
356 | | rewritten(description, parent, content) as a8df460dbbfe using prune by test (Thu Jan 01 00:00:00 1970 +0000) 356 | | rewritten(description, parent, content) as a8df460dbbfe using prune by test (Thu Jan 01 00:00:00 1970 +0000)
357 | | 357 | |
358 358
359 Check the json output is valid in this case 359 Check the json output is valid in this case
360 360
361 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool 361 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | "$PYTHON" -m json.tool
362 [ 362 [
363 { 363 {
364 "markers": [ 364 "markers": [
365 { 365 {
366 "dates": [ 366 "dates": [
557 "node": "2a34000d35446022104f7a091c06fe21ff2b5912", 557 "node": "2a34000d35446022104f7a091c06fe21ff2b5912",
558 "shortdescription": "A" 558 "shortdescription": "A"
559 } 559 }
560 ] 560 ]
561 561
562 $ hg obslog "desc(D)" --hidden --no-graph --no-origin -Tjson | python -m json.tool 562 $ hg obslog "desc(D)" --hidden --no-graph --no-origin -Tjson | "$PYTHON" -m json.tool
563 [ 563 [
564 { 564 {
565 "markers": [ 565 "markers": [
566 { 566 {
567 "dates": [ 567 "dates": [