@@ -1746,8 +1746,8 @@ async fn custom_operation_without_timeout_successful() {
1746
1746
//create custom operation file
1747
1747
create_custom_op_file ( & cfg_dir, cmd_file. as_path ( ) , None , None ) ;
1748
1748
//create command
1749
- let content = r#"#!/usr/ bin/env bash
1750
- for i in {1..2}
1749
+ let content = r#"#!/bin/sh
1750
+ for i in $(seq 1 2)
1751
1751
do
1752
1752
sleep 1
1753
1753
done
@@ -1808,8 +1808,8 @@ async fn custom_operation_with_timeout_successful() {
1808
1808
//create custom operation file
1809
1809
create_custom_op_file ( & cfg_dir, cmd_file. as_path ( ) , Some ( 4 ) , Some ( 2 ) ) ;
1810
1810
//create command
1811
- let content = r#"#!/usr/ bin/env bash
1812
- for i in {1..2}
1811
+ let content = r#"#!/bin/sh
1812
+ for i in $(seq 1 2)
1813
1813
do
1814
1814
sleep 1
1815
1815
done
@@ -1868,9 +1868,9 @@ async fn custom_operation_timeout_sigterm() {
1868
1868
//create custom operation file
1869
1869
create_custom_op_file ( & cfg_dir, cmd_file. as_path ( ) , Some ( 1 ) , Some ( 2 ) ) ;
1870
1870
//create command
1871
- let content = r#"#!/usr/ bin/env bash
1872
- trap 'echo received SIGTERM; exit 124' SIGTERM
1873
- for i in {1..10}
1871
+ let content = r#"#!/bin/sh
1872
+ trap 'echo received SIGTERM; exit 124' TERM
1873
+ for i in $(seq 1 10)
1874
1874
do
1875
1875
echo "main $i"
1876
1876
sleep 2
@@ -1933,9 +1933,9 @@ async fn custom_operation_timeout_sigkill() {
1933
1933
//create custom operation file
1934
1934
create_custom_op_file ( & cfg_dir, cmd_file. as_path ( ) , Some ( 1 ) , Some ( 2 ) ) ;
1935
1935
//create command
1936
- let content = r#"#!/usr/ bin/env bash
1937
- trap 'echo ignore SIGTERM' SIGTERM
1938
- for i in {1..50}
1936
+ let content = r#"#!/bin/sh
1937
+ trap 'echo ignore SIGTERM' TERM
1938
+ for i in $(seq 1 50)
1939
1939
do
1940
1940
echo "main $i"
1941
1941
sleep 2
0 commit comments