lib/beaker/perf.rb in beaker-3.29.0 vs lib/beaker/perf.rb in beaker-3.30.0

- old
+ new

@@ -2,12 +2,12 @@ # The Beaker Perf class. A single instance is created per Beaker run. class Perf PERF_PACKAGES = ['sysstat'] # SLES does not treat sysstat as a service that can be started - PERF_SUPPORTED_PLATFORMS = /debian|ubuntu|redhat|amazon|centos|oracle|scientific|fedora|el|eos|cumulus|sles/ - PERF_START_PLATFORMS = /debian|ubuntu|redhat|amazon|centos|oracle|scientific|fedora|el|eos|cumulus/ + PERF_SUPPORTED_PLATFORMS = /debian|ubuntu|redhat|centos|oracle|scientific|fedora|el|eos|cumulus|sles/ + PERF_START_PLATFORMS = /debian|ubuntu|redhat|centos|oracle|scientific|fedora|el|eos|cumulus/ # Create the Perf instance and runs setup_perf_on_host on all hosts if --collect-perf-data # was used as an option on the Baker command line invocation. Instances of this class do not # hold state and its methods are helpers for remotely executing tasks for performance data # gathering with sysstat/sar @@ -48,10 +48,10 @@ end if @options[:collect_perf_data] =~ /aggressive/ @logger.perf_output("Enabling aggressive sysstat polling") if host['platform'] =~ /debian|ubuntu/ host.exec(Command.new('sed -i s/5-55\\\/10/*/ /etc/cron.d/sysstat')) - elsif host['platform'] =~ /centos|el|fedora|oracle|redhats|amazon|scientific/ + elsif host['platform'] =~ /centos|el|fedora|oracle|redhats|scientific/ host.exec(Command.new('sed -i s/*\\\/10/*/ /etc/cron.d/sysstat')) end end if host['platform'] =~ PERF_START_PLATFORMS # SLES doesn't need this step host.exec(Command.new('service sysstat start'))