SWDEV-267558 : json rebasing supression by env ROCP_JSON_REBASE=0

Change-Id: I968d3922b1714dba09621a90c26cec959be55b91
이 커밋은 다음에 포함됨:
Evgeny
2021-01-27 20:53:42 -06:00
부모 249b0c2b26
커밋 3f504e9bd7
+10 -9
파일 보기
@@ -673,15 +673,16 @@ inext = re.sub(r'^.*(\.[^\.]+)$', r'\1', inext)
dbfile = ''
csvfile = ''
begin_ts_file = indir + '/begin_ts_file.txt'
if os.path.isfile(begin_ts_file):
with open(begin_ts_file, mode='r') as fd:
ind = 0
for line in fd.readlines():
val = int(line)
if ind == 0 or val < START_NS: START_NS = val
ind += 1
print('START timestamp found (' + str(START_NS) + 'ns)')
if 'ROCP_JSON_REBASE' in os.environ and os.environ['ROCP_JSON_REBASE'] == 0:
begin_ts_file = indir + '/begin_ts_file.txt'
if os.path.isfile(begin_ts_file):
with open(begin_ts_file, mode='r') as fd:
ind = 0
for line in fd.readlines():
val = int(line)
if ind == 0 or val < START_NS: START_NS = val
ind += 1
print('START timestamp found (' + str(START_NS) + 'ns)')
if re.search(r'\.csv$', outfile):
csvfile = outfile