Skip to content

Commit

Permalink
Fix ucevent test for python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Jan 14, 2025
1 parent 98e8771 commit 44d61d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ucevent/sanity-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
from __future__ import print_function
import sys
import os
import pipes
# thanks python 3.13!
try:
from shlex import quote as cmd_quote
except ImportError:
from pipes import quote as cmd_quote

logfile = "slog.%d" % (os.getpid())


s = "./ucevent.py -x, -o " + logfile + " " + " ".join(map(pipes.quote, sys.argv[1:]))
s = "./ucevent.py -x, -o " + logfile + " " + " ".join(map(cmd_quote, sys.argv[1:]))
w = os.getenv("WRAP")
if w:
s = w + " " + s
Expand Down

0 comments on commit 44d61d1

Please sign in to comment.