summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setenv.kermit8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/setenv.kermit b/tests/setenv.kermit
index e7320fea3..eec5a87b2 100755
--- a/tests/setenv.kermit
+++ b/tests/setenv.kermit
@@ -20,10 +20,12 @@ define setenv_uboot_v1 {
ptx_check_fail "Did not get old environment"
# quit on u-boot-prompt
if = \v(minput) 2 break
+ # Remove all CR, they just cause trouble
+ assign input \freplace(\v(input),\13,,)
# if no '=' then continue
- if not match \v(input) *=* goto out
- # extract part before '=' (from \v(input) the first word, allow '_')
- assign envvar \fword(\v(input),1,,_)
+ if not match \m(input) *=* goto out
+ # extract part before '=' (from \m(input) the first word, allow '_')
+ assign envvar \fword(\m(input),1,,_)
# skip special keywords
if not = \farraylook(^\m(envvar)$,&s) -1 goto out
# put setenv-command into array