Lines Matching refs:response
49 response = self.u_boot_console.run_command('printenv')
51 response = self.u_boot_console.run_command('printenv')
53 for l in response.splitlines():
154 response = state_test_env.u_boot_console.run_command('echo ${%s}' % var)
155 assert response == ''
170 response = state_test_env.u_boot_console.run_command('printenv %s' % var)
171 assert response == ('%s=%s' % (var, value))
193 response = c.run_command('printenv %s' % var)
194 assert(response == '## Error: "%s" not defined' % var)
258 response = c.run_command('env import -c %s -' % addr)
259 assert(response == '## Error: external checksum format must pass size')
271 response = c.run_command('env import -c %s - foo1 foo2 foo4' % addr)
272 assert(response == '## Error: external checksum format must pass size')
351 response = c.run_command('env info')
353 for l in response.split('\n'):
364 response = c.run_command('env info -p -d')
365 …assert 'Default environment is used' in response or "Environment was loaded from persistent storag…
366 … assert 'Environment can be persisted' in response or "Environment cannot be persisted" in response
368 response = c.run_command('env info -p -d -q')
369 assert response == ""
371 response = c.run_command('env info -p -q')
372 assert response == ""
374 response = c.run_command('env info -d -q')
375 assert response == ""
386 response = c.run_command('env info')
387 assert 'env_ready = true' in response
388 assert 'env_use_default = true' in response
390 response = c.run_command('env info -p -d')
391 assert 'Default environment is used' in response
392 assert 'Environment cannot be persisted' in response
394 response = c.run_command('env info -d -q')
395 response = c.run_command('echo $?')
396 assert response == "0"
398 response = c.run_command('env info -p -q')
399 response = c.run_command('echo $?')
400 assert response == "1"
402 response = c.run_command('env info -d -p -q')
403 response = c.run_command('echo $?')
404 assert response == "1"
448 response = c.run_command('ext4ls host 0:0')
449 assert 'uboot.env' not in response
452 response = c.run_command('env select EXT4')
453 assert 'Select Environment on EXT4: OK' in response
455 response = c.run_command('env save')
456 assert 'Saving Environment to EXT4' in response
458 response = c.run_command('env load')
459 assert 'Loading Environment from EXT4... OK' in response
461 response = c.run_command('ext4ls host 0:0')
462 assert '8192 uboot.env' in response
464 response = c.run_command('env info')
465 assert 'env_valid = valid' in response
466 assert 'env_ready = true' in response
467 assert 'env_use_default = false' in response
469 response = c.run_command('env info -p -d')
470 assert 'Environment was loaded from persistent storage' in response
471 assert 'Environment can be persisted' in response
473 response = c.run_command('env info -d -q')
474 assert response == ""
475 response = c.run_command('echo $?')
476 assert response == "1"
478 response = c.run_command('env info -p -q')
479 assert response == ""
480 response = c.run_command('echo $?')
481 assert response == "0"
483 response = c.run_command('env erase')
484 assert 'OK' in response
486 response = c.run_command('env load')
487 assert 'Loading Environment from EXT4... ' in response
488 assert 'bad CRC, using default environment' in response
490 response = c.run_command('env info')
491 assert 'env_valid = invalid' in response
492 assert 'env_ready = true' in response
493 assert 'env_use_default = true' in response
495 response = c.run_command('env info -p -d')
496 assert 'Default environment is used' in response
497 assert 'Environment can be persisted' in response
500 response = c.run_command('env select nowhere')
501 assert 'Select Environment on nowhere: OK' in response
503 response = c.run_command('env load')
504 assert 'Loading Environment from nowhere... OK' in response
506 response = c.run_command('env info')
507 assert 'env_valid = invalid' in response
508 assert 'env_ready = true' in response
509 assert 'env_use_default = true' in response
511 response = c.run_command('env info -p -d')
512 assert 'Default environment is used' in response
513 assert 'Environment cannot be persisted' in response