From eb1f9dc58a3a2164f4223290c21801d194a8c7ac Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 7 Apr 2020 10:56:57 -0300 Subject: testing/supercronic: use python3 in tests --- testing/supercronic/python3.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testing/supercronic/python3.patch (limited to 'testing/supercronic/python3.patch') 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}, -- cgit v1.2.3