mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
19 lines
579 B
Python
19 lines
579 B
Python
|
#!/usr/bin/env python3
|
||
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
#
|
||
|
# This software may be used and distributed according to the terms of the
|
||
|
# GNU General Public License version 2.
|
||
|
|
||
|
import json
|
||
|
import subprocess
|
||
|
|
||
|
|
||
|
with open("report.json", "r") as f:
|
||
|
tests = json.load(f)
|
||
|
for name, t in tests.items():
|
||
|
name = name.split(" ")[0]
|
||
|
if t["result"] == "skip":
|
||
|
print("%s skipped" % name)
|
||
|
subprocess.run("sed -i '/#require py2/d' %s" % name, shell=True)
|
||
|
subprocess.run("sed -i '/require.*py2/d' %s" % name, shell=True)
|