Skip to contentSkip to conversation

Add gzip and gunzip to the test list which using command tr.

PATCH In review Wang Mingyu 2 participants 2 messages Jul 16, 2018 – Jul 18, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add gzip and gunzip to the test list which using command tr.

---
 engine/tests/Functional.busybox/fuego_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
engine/tests/Functional.busybox/fuego_test.sh +1 -1
index 861cf24..e2597ac 100755
@@ -44,7 +44,7 @@ function test_pre_check {
     echo "Tests skipped depending on the availability of a command on the target"
     touch ${LOGDIR}/skiplist.txt
     skip_if_command_unavailable expect "busybox_ash.sh"
-    skip_if_command_unavailable tr "busybox_chgrp1.sh busybox_chgrp2.sh busybox_chmod1.sh busybox_chmod2.sh busybox_chown1.sh busybox_chown2.sh"
+    skip_if_command_unavailable tr "busybox_chgrp1.sh busybox_chgrp2.sh busybox_chmod1.sh busybox_chmod2.sh busybox_chown1.sh busybox_chown2.sh busybox_gunzip.sh busybox_gzip.sh"
     skip_if_not_root "busybox_chroot.sh"
 }
 
Signature · 1 line
1.8.3.1
#1 lore raw

Looking at the scripts for gzip and gunzip, I think you should remove the usage of 'tr' in those scripts, rather than add the dependency and this check here.

Please see my comments on the other patch
-- Tim

Quoted 36 lines

-----Original Message-----
From: Wang Mingyu

---
 engine/tests/Functional.busybox/fuego_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
engine/tests/Functional.busybox/fuego_test.sh +0 -0
index 861cf24..e2597ac 100755
@@ -44,7 +44,7 @@ function test_pre_check {
     echo "Tests skipped depending on the availability of a command on the

target"
touch ${LOGDIR}/skiplist.txt skip_if_command_unavailable expect "busybox_ash.sh"
- skip_if_command_unavailable tr "busybox_chgrp1.sh busybox_chgrp2.sh
busybox_chmod1.sh busybox_chmod2.sh busybox_chown1.sh busybox_chown2.sh"
+ skip_if_command_unavailable tr "busybox_chgrp1.sh busybox_chgrp2.sh
busybox_chmod1.sh busybox_chmod2.sh busybox_chown1.sh busybox_chown2.sh busybox_gunzip.sh busybox_gzip.sh"
skip_if_not_root "busybox_chroot.sh"
}

--
1.8.3.1

_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego