# HG changeset patch # User FUJIWARA Katsunori # Date 1534994681 -32400 # Node ID 58786930ea27df8743c1c15ea19b4fb779f363d9 # Parent c36846abbcd3e2103b0dcf49a3381b2e6b1aea5d tests: use environment variable indirectly Using environment variable directly in heredoc python code will cause syntax error at checking module importation by import-checker.py strictly, because "$varname" is invalid in Python syntax. "$varname" becomes valid after environment variable substitution by shell at writing text into file. Current import-checker.py overlooks code fragment changed in this patch, because of a restriction below for a line starting code fragment. - filename must be specified before limit mark NG: cat < FILE.py OK: cat > FILE.py < f = open(fpath, 'w') > f.close() > # wait for ack - caller should delete the notify file - > i = $maxwait + > i = int("$maxwait") > while os.path.exists(fpath) and i > 0: > time.sleep(1) > i -= 1