Commit 07e4b3be authored by Jérome Perrin's avatar Jérome Perrin

software/fluentd/test: use sys.executable instead of #!/usr/bin/python2.7

On modern systems it is not installed and anyway slapos should not
depend on host system programs.
Basically same fix as b964b95b (software/fluentd: Fix SR test on Debian
11, 2022-01-04)
parent 7a15e067
...@@ -190,11 +190,12 @@ class SensorConfTestCase(WendelinTutorialTestCase): ...@@ -190,11 +190,12 @@ class SensorConfTestCase(WendelinTutorialTestCase):
@classmethod @classmethod
def sensor_script(cls, measurementList): def sensor_script(cls, measurementList):
return '''\ measurement_text = "\t".join(measurementList)
#!/usr/bin/python return f'''\
#!{sys.executable}
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
print("%s")''' % "\t".join(measurementList) print("{measurement_text}")'''
def test_configuration(self): def test_configuration(self):
self._test_configuration( self._test_configuration(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment