testsuite: check CONFIG_DESKTOP before using 'od -t'

The '-t' option for od is enabled by CONFIG_DESKTOP. So
check this config before using 'od -t' in test cases.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Chen Qi
2018-11-21 10:19:28 +08:00
committed by Denys Vlasenko
parent 71df2d3589
commit 572dfb8e78
7 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
# FEATURE: CONFIG_FEATURE_FANCY_ECHO
# FEATURE: CONFIG_FEATURE_FANCY_ECHO CONFIG_DESKTOP
test "`busybox echo -ne '\00041z' | od -t x1 | head -n 1`" = "0000000 04 31 7a"