<commit_before>require "spec_helper"

if (os[:family] == "redhat" && os[:release].to_i == 5) ||
   os[:family] == "debian"
  describe command("pgrep -f 'runsvdir.*\/opt\/tp'") do
    its(:exit_status) { should eq(1) }
  end

  describe file("/etc/inittab") do
    its(:content) { should_not match(/\/opt\/tp\/embedded\/bin\/runsvdir-start/) }
  end
end<commit_msg>use more reliable test to see if the process is not running<commit_after>require "spec_helper"

if (os[:family] == "redhat" && os[:release].to_i == 5) ||
   os[:family] == "debian"
  describe command("ps x | grep 'runsvdir.*\/opt\/tp' | grep -v grep") do
    its(:exit_status) { should eq(1) }
  end

  describe file("/etc/inittab") do
    its(:content) { should_not match(/\/opt\/tp\/embedded\/bin\/runsvdir-start/) }
  end
end
{'fraction_non_alphanumeric': 0.19696969696969696, 'fraction_numerical': 0.005050505050505051, 'mean_word_length': 3.61046511627907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5046904', 'n_tokens_mistral': 296, 'n_tokens_neox': 288, 'n_words': 66}