mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
[pitboss/grind] deferred session-0029 (20260517T044708Z-e058)
This commit is contained in:
parent
72ec25238e
commit
19d13a085d
16 changed files with 578 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
FROM python:3.11
|
||||
WORKDIR /harness
|
||||
COPY harness.py .
|
||||
CMD ["python3", "harness.py"]
|
||||
21
tests/repro_fixtures/python-3.11/repro/harness/harness.py
Normal file
21
tests/repro_fixtures/python-3.11/repro/harness/harness.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> int:
|
||||
payload = os.environ.get('NYX_PAYLOAD', '')
|
||||
if not payload:
|
||||
sys.stderr.write('error: NYX_PAYLOAD missing\n')
|
||||
return 2
|
||||
try:
|
||||
result = eval(payload) # noqa: S307 sink under sandbox
|
||||
except Exception as exc: # noqa: BLE001
|
||||
sys.stderr.write(f'__NYX_SINK_ERROR__ {type(exc).__name__}: {exc}\n')
|
||||
return 1
|
||||
sys.stdout.write('__NYX_SINK_HIT__\n')
|
||||
sys.stdout.write(f'eval-result={result}\n')
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue