aboutsummaryrefslogtreecommitdiffstats
path: root/testing/supercronic/python3.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-07 10:56:57 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-07 14:44:12 +0000
commiteb1f9dc58a3a2164f4223290c21801d194a8c7ac (patch)
tree591a2fc14f258214eeaed1f79c17aff705e2be8a /testing/supercronic/python3.patch
parent694f673c3c5210a6af7dd2680ec2594f4f3acbcc (diff)
downloadaports-eb1f9dc58a3a2164f4223290c21801d194a8c7ac.tar.bz2
aports-eb1f9dc58a3a2164f4223290c21801d194a8c7ac.tar.xz
testing/supercronic: use python3 in tests
Diffstat (limited to 'testing/supercronic/python3.patch')
-rw-r--r--testing/supercronic/python3.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/supercronic/python3.patch b/testing/supercronic/python3.patch
new file mode 100644
index 0000000000..6e3852efcb
--- /dev/null
+++ b/testing/supercronic/python3.patch
@@ -0,0 +1,13 @@
+diff --git a/cron/cron_test.go b/cron/cron_test.go
+index 9256514..25f17dd 100644
+--- a/cron/cron_test.go
++++ b/cron/cron_test.go
+@@ -132,7 +132,7 @@ var runJobTestCases = []struct {
+ },
+ },
+ {
+- fmt.Sprintf("python -c 'print(\"a\" * %d * 3)'", READ_BUFFER_SIZE), true, &basicContext,
++ fmt.Sprintf("python3 -c 'print(\"a\" * %d * 3)'", READ_BUFFER_SIZE), true, &basicContext,
+ []*logrus.Entry{
+ {Message: "starting", Level: logrus.InfoLevel, Data: noData},
+ {Message: strings.Repeat("a", READ_BUFFER_SIZE), Level: logrus.InfoLevel, Data: stdoutData},