@@ -60,7 +60,8 @@ func TestInjectPythonSDK(t *testing.T) {
60
60
{
61
61
Name : "opentelemetry-auto-instrumentation-python" ,
62
62
Image : "foo/bar:1" ,
63
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
63
+ Command : []string {"/bin/sh" },
64
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
64
65
VolumeMounts : []corev1.VolumeMount {{
65
66
Name : "opentelemetry-auto-instrumentation-python" ,
66
67
MountPath : "/otel-auto-instrumentation-python" ,
@@ -137,7 +138,8 @@ func TestInjectPythonSDK(t *testing.T) {
137
138
{
138
139
Name : "opentelemetry-auto-instrumentation-python" ,
139
140
Image : "foo/bar:1" ,
140
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
141
+ Command : []string {"/bin/sh" },
142
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
141
143
VolumeMounts : []corev1.VolumeMount {{
142
144
Name : "opentelemetry-auto-instrumentation-python" ,
143
145
MountPath : "/otel-auto-instrumentation-python" ,
@@ -215,7 +217,8 @@ func TestInjectPythonSDK(t *testing.T) {
215
217
{
216
218
Name : "opentelemetry-auto-instrumentation-python" ,
217
219
Image : "foo/bar:1" ,
218
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
220
+ Command : []string {"/bin/sh" },
221
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
219
222
VolumeMounts : []corev1.VolumeMount {{
220
223
Name : "opentelemetry-auto-instrumentation-python" ,
221
224
MountPath : "/otel-auto-instrumentation-python" ,
@@ -292,7 +295,8 @@ func TestInjectPythonSDK(t *testing.T) {
292
295
{
293
296
Name : "opentelemetry-auto-instrumentation-python" ,
294
297
Image : "foo/bar:1" ,
295
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
298
+ Command : []string {"/bin/sh" },
299
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
296
300
VolumeMounts : []corev1.VolumeMount {{
297
301
Name : "opentelemetry-auto-instrumentation-python" ,
298
302
MountPath : "/otel-auto-instrumentation-python" ,
@@ -445,7 +449,8 @@ func TestInjectPythonSDK(t *testing.T) {
445
449
{
446
450
Name : "opentelemetry-auto-instrumentation-python" ,
447
451
Image : "foo/bar:1" ,
448
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
452
+ Command : []string {"/bin/sh" },
453
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
449
454
VolumeMounts : []corev1.VolumeMount {{
450
455
Name : "opentelemetry-auto-instrumentation-python" ,
451
456
MountPath : "/otel-auto-instrumentation-python" ,
@@ -549,7 +554,8 @@ func TestInjectPythonSDK(t *testing.T) {
549
554
{
550
555
Name : "opentelemetry-auto-instrumentation-python" ,
551
556
Image : "foo/bar:1" ,
552
- Command : []string {"test" , "-d" , "/autoinstrumentation-musl/." , "&&" , "cp" , "-r" , "/autoinstrumentation-musl/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
557
+ Command : []string {"/bin/sh" },
558
+ Args : []string {"-c" , "test -d /autoinstrumentation-musl/. && cp -r /autoinstrumentation-musl/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
553
559
VolumeMounts : []corev1.VolumeMount {{
554
560
Name : "opentelemetry-auto-instrumentation-python" ,
555
561
MountPath : "/otel-auto-instrumentation-python" ,
@@ -615,7 +621,8 @@ func TestInjectPythonSDK(t *testing.T) {
615
621
{
616
622
Name : "opentelemetry-auto-instrumentation-python" ,
617
623
Image : "foo/bar:1" ,
618
- Command : []string {"test" , "-d" , "/autoinstrumentation/." , "&&" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" , "||" , "cp" , "-r" , "/autoinstrumentation/." , "/otel-auto-instrumentation-python" },
624
+ Command : []string {"/bin/sh" },
625
+ Args : []string {"-c" , "test -d /autoinstrumentation/. && cp -r /autoinstrumentation/. /otel-auto-instrumentation-python || cp -r /autoinstrumentation/. /otel-auto-instrumentation-python" },
619
626
VolumeMounts : []corev1.VolumeMount {{
620
627
Name : "opentelemetry-auto-instrumentation-python" ,
621
628
MountPath : "/otel-auto-instrumentation-python" ,
0 commit comments