aboutsummaryrefslogtreecommitdiff
path: root/client/bin/autotestd
diff options
context:
space:
mode:
Diffstat (limited to 'client/bin/autotestd')
-rwxr-xr-xclient/bin/autotestd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/bin/autotestd b/client/bin/autotestd
index 5af5d8cea9..6630b417f7 100755
--- a/client/bin/autotestd
+++ b/client/bin/autotestd
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
import common
import sys, os, subprocess, fcntl
@@ -48,7 +48,7 @@ open(os.path.join(logdir, 'started'), 'w').close()
exit_code = subprocess.call("{} {}".format(sys.executable, cmd),
shell=True,
close_fds=False)
-exit_file.write('%+04d' % exit_code)
+exit_file.write(b'%+04d' % exit_code)
exit_file.flush()
fcntl.flock(exit_file, fcntl.LOCK_UN)
exit_file.close()