Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulate xterm everywhere #543

Merged
merged 5 commits into from
Oct 14, 2019
Merged

Emulate xterm everywhere #543

merged 5 commits into from
Oct 14, 2019

Conversation

Xyene
Copy link
Member

@Xyene Xyene commented Oct 10, 2019

No description provided.

@Xyene Xyene requested a review from quantum5 October 10, 2019 17:42
@codecov-io
Copy link

codecov-io commented Oct 14, 2019

Codecov Report

Merging #543 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #543      +/-   ##
==========================================
- Coverage   86.17%   86.16%   -0.02%     
==========================================
  Files         100      100              
  Lines        2083     2081       -2     
==========================================
- Hits         1795     1793       -2     
  Misses        288      288
Impacted Files Coverage Δ
dmoj/executors/SCALA.py 95.65% <100%> (-0.1%) ⬇️
dmoj/executors/SWIFT.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7872dd0...60f31c2. Read the comment docs.

# Emulate the streams of a process connected to a terminal: stdin, stdout, and stderr are all ptys.
self._master, self._slave = pty.openpty()
# Some runtimes *cough cough* Swift *cough cough* actually check the environment variables too.
env = self.get_compile_env() or os.environ.copy()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually broken, although you are just copying code. The intention was that get_compile_env could return {}, which is supposed to mean blank environment, except it actually has the same meaning as None now. This is probably not worth changing now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I noticed this too.

@Xyene Xyene merged commit f0b6668 into master Oct 14, 2019
@Xyene Xyene deleted the emulate-xterm-everywhere branch October 14, 2019 18:08
outloudvi added a commit to SchOJ/judge that referenced this pull request Mar 23, 2020
outloudvi added a commit to SchOJ/judge that referenced this pull request Mar 23, 2020
outloudvi added a commit to SchOJ/judge that referenced this pull request Feb 23, 2021
outloudvi added a commit to SchOJ/judge that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants