Lines Matching refs:response

53                 response = self.ubman.run_command('printenv')
55 response = self.ubman.run_command('printenv')
57 for l in response.splitlines():
158 response = state_test_env.ubman.run_command('echo ${%s}' % var)
159 assert response == ''
174 response = state_test_env.ubman.run_command('printenv %s' % var)
175 assert response == ('%s=%s' % (var, value))
219 response = c.run_command('printenv %s' % var)
220 assert response == '## Error: "%s" not defined' % var
284 response = c.run_command('env import -c %s -' % addr)
285 assert response == '## Error: external checksum format must pass size'
297 response = c.run_command('env import -c %s - foo1 foo2 foo4' % addr)
298 assert response == '## Error: external checksum format must pass size'
377 response = c.run_command('env info')
379 for l in response.split('\n'):
390 response = c.run_command('env info -p -d')
391 assert 'Default environment is used' in response or \
392 "Environment was loaded from persistent storage" in response
393 assert 'Environment can be persisted' in response or \
394 "Environment cannot be persisted" in response
396 response = c.run_command('env info -p -d -q')
397 assert response == ""
399 response = c.run_command('env info -p -q')
400 assert response == ""
402 response = c.run_command('env info -d -q')
403 assert response == ""
414 response = c.run_command('env info')
415 assert 'env_ready = true' in response
416 assert 'env_use_default = true' in response
418 response = c.run_command('env info -p -d')
419 assert 'Default environment is used' in response
420 assert 'Environment cannot be persisted' in response
422 response = c.run_command('env info -d -q')
423 response = c.run_command('echo $?')
424 assert response == "0"
426 response = c.run_command('env info -p -q')
427 response = c.run_command('echo $?')
428 assert response == "1"
430 response = c.run_command('env info -d -p -q')
431 response = c.run_command('echo $?')
432 assert response == "1"
476 response = c.run_command('ext4ls host 0:0')
477 assert 'uboot.env' not in response
480 response = c.run_command('env select EXT4')
481 assert 'Select Environment on EXT4: OK' in response
483 response = c.run_command('env save')
484 assert 'Saving Environment to EXT4' in response
486 response = c.run_command('env load')
487 assert 'Loading Environment from EXT4... OK' in response
489 response = c.run_command('ext4ls host 0:0')
490 assert '8192 uboot.env' in response
492 response = c.run_command('env info')
493 assert 'env_valid = valid' in response
494 assert 'env_ready = true' in response
495 assert 'env_use_default = false' in response
497 response = c.run_command('env info -p -d')
498 assert 'Environment was loaded from persistent storage' in response
499 assert 'Environment can be persisted' in response
501 response = c.run_command('env info -d -q')
502 assert response == ""
503 response = c.run_command('echo $?')
504 assert response == "1"
506 response = c.run_command('env info -p -q')
507 assert response == ""
508 response = c.run_command('echo $?')
509 assert response == "0"
511 response = c.run_command('env erase')
512 assert 'OK' in response
514 response = c.run_command('env load')
515 assert 'Loading Environment from EXT4... ' in response
516 assert 'bad CRC, using default environment' in response
518 response = c.run_command('env info')
519 assert 'env_valid = invalid' in response
520 assert 'env_ready = true' in response
521 assert 'env_use_default = true' in response
523 response = c.run_command('env info -p -d')
524 assert 'Default environment is used' in response
525 assert 'Environment can be persisted' in response
528 response = c.run_command('env select nowhere')
529 assert 'Select Environment on nowhere: OK' in response
531 response = c.run_command('env load')
532 assert 'Loading Environment from nowhere... OK' in response
534 response = c.run_command('env info')
535 assert 'env_valid = invalid' in response
536 assert 'env_ready = true' in response
537 assert 'env_use_default = true' in response
539 response = c.run_command('env info -p -d')
540 assert 'Default environment is used' in response
541 assert 'Environment cannot be persisted' in response