@@ -1485,7 +1485,7 @@ class TestTimers(testlib.MachineCase):
14851485 b .wait_visible ("#timer-dialog" )
14861486 b .set_input_text ("#servicename" , "yearly_timer" )
14871487 b .set_input_text ("#description" , "Yearly timer" )
1488- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1488+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
14891489 b .select_from_dropdown ("#drop-repeat" , "yearly" )
14901490 b .click ("[data-index='0'] [aria-label='Add']" )
14911491 b .set_input_text ("[data-index='0'] .pf-v6-c-date-picker:nth-child(1) input" , "2036-01-01" )
@@ -1502,7 +1502,7 @@ class TestTimers(testlib.MachineCase):
15021502 b .wait_visible ("#timer-dialog" )
15031503 b .set_input_text ("#servicename" , "monthly_timer" )
15041504 b .set_input_text ("#description" , "Monthly timer" )
1505- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1505+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15061506 b .click ("input[value=specific-time]" )
15071507 b .select_from_dropdown ("#drop-repeat" , "monthly" )
15081508 b .select_from_dropdown ("[data-index='0'] .month-days select" , "6" )
@@ -1520,7 +1520,7 @@ class TestTimers(testlib.MachineCase):
15201520 b .wait_visible ("#timer-dialog" )
15211521 b .set_input_text ("#servicename" , "weekly_timer" )
15221522 b .set_input_text ("#description" , "Weekly timer" )
1523- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1523+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15241524 b .click ("input[value=specific-time]" )
15251525 b .select_from_dropdown ("#drop-repeat" , "weekly" )
15261526 b .wait_visible ("[data-index='0'] .week-days" )
@@ -1541,7 +1541,7 @@ class TestTimers(testlib.MachineCase):
15411541 b .wait_visible ("#timer-dialog" )
15421542 b .set_input_text ("#servicename" , "daily_timer" )
15431543 b .set_input_text ("#description" , "Daily timer" )
1544- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1544+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15451545 b .click ("input[value=specific-time]" )
15461546 b .select_from_dropdown ("#drop-repeat" , "daily" )
15471547 b .click ("[data-index='0'] [aria-label='Add']" )
@@ -1557,7 +1557,7 @@ class TestTimers(testlib.MachineCase):
15571557 b .wait_visible ("#timer-dialog" )
15581558 b .set_input_text ("#servicename" , "hourly_timer" )
15591559 b .set_input_text ("#description" , "Hourly timer" )
1560- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1560+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15611561 b .click ("input[value=specific-time]" )
15621562 b .select_from_dropdown ("#drop-repeat" , "hourly" )
15631563 b .click ("[data-index='0'] [aria-label='Add']" )
@@ -1573,7 +1573,7 @@ class TestTimers(testlib.MachineCase):
15731573 b .wait_visible ("#timer-dialog" )
15741574 b .set_input_text ("#servicename" , "minutely_timer" )
15751575 b .set_input_text ("#description" , "Minutely timer" )
1576- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1576+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15771577 b .select_from_dropdown ("#drop-repeat" , "minutely" )
15781578 b .click ("[data-index='0'] [aria-label='Add']" )
15791579 b .set_input_text ("[data-index='0'] input" , "05" )
@@ -1589,7 +1589,7 @@ class TestTimers(testlib.MachineCase):
15891589 b .wait_visible ("#timer-dialog" )
15901590 b .set_input_text ("#servicename" , "no_repeat_timer" )
15911591 b .set_input_text ("#description" , "No repeat timer" )
1592- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1592+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
15931593 b .click ("input[value=specific-time]" )
15941594 b .set_input_text (".create-timer-time-picker input" , "23:59" )
15951595 b .click ("#timer-save-button" )
@@ -1602,7 +1602,7 @@ class TestTimers(testlib.MachineCase):
16021602 b .wait_visible ("#timer-dialog" )
16031603 b .set_input_text ("#servicename" , "boot_timer" )
16041604 b .set_input_text ("#description" , "Boot timer" )
1605- b .set_input_text ("#command" , "/bin/sh -c ' echo hello >> /tmp/hello' " )
1605+ b .set_input_text ("#command" , "echo hello >> /tmp/hello" )
16061606 b .click ("input[value=system-boot]" )
16071607 b .set_input_text (".delay-group input" , "2" )
16081608 b .click ("#timer-save-button" )
@@ -1650,7 +1650,7 @@ class TestTimers(testlib.MachineCase):
16501650 b .wait_visible ("#timer-dialog" )
16511651 b .set_input_text ("#servicename" , "testing timer" )
16521652 m .execute ("rm -f /tmp/date" )
1653- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1653+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
16541654 b .click ("input[value=specific-time]" )
16551655 b .set_input_text (".create-timer-time-picker input" , "24:6s" )
16561656 b .click ("#timer-save-button" )
@@ -1660,16 +1660,13 @@ class TestTimers(testlib.MachineCase):
16601660 b .wait_text ("#description-helper" , "This field cannot be empty" )
16611661 b .wait_text (".pf-v6-c-date-picker__helper-text" , "Invalid time format" )
16621662
1663- # checks for command not found
1663+ # correct input
16641664 b .set_input_text ("#servicename" , "testing" )
16651665 b .set_input_text ("#description" , "desc" )
1666- b .set_input_text ("#command" , "this is not found" )
16671666 b .set_input_text (".create-timer-time-picker input" , "14:12" )
1668- b .click ("#timer-save-button" )
1669- b .wait_text ("#command-helper" , "Command not found" )
16701667
16711668 # shows creation errors
1672- b .set_input_text ("#command" , "/bin/sh -c '/bin/ date >> /tmp/date' " )
1669+ b .set_input_text ("#command" , "/bin/date >> /tmp/date" )
16731670 b .click ("input[value=specific-time]" )
16741671 b .set_input_text (".create-timer-time-picker input" , "23:59" )
16751672 m .execute ("chattr +i /etc/systemd/system" )
@@ -1814,7 +1811,7 @@ OnCalendar=weekly
18141811 b .click ("#services-page .pf-v6-c-menu__list-item:contains('Edit') button" )
18151812 self .assertEqual (b .val ("#servicename" ), "yearly_timer" )
18161813 self .assertEqual (b .val ("#description" ), "Yearly timer" )
1817- self .assertEqual (b .val ("#command" ), "/bin/sh -c '/bin/ date >> /tmp/date' " )
1814+ self .assertEqual (b .val ("#command" ), "/bin/date >> /tmp/date" )
18181815 for index in range (2 ):
18191816 date = b .val (f"[data-index='{ index } '] .pf-v6-c-date-picker:nth-child(1) input" )
18201817 time_ = b .val (f"[data-index='{ index } '] .pf-v6-c-date-picker:nth-child(2) input" )
0 commit comments