blob: 6cc906d989d86ef01f866ba903e625284962a7d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Test boot_partition when fw_setenv fails (non-zero exit code).
-- File fs/open~_tmp_sysinfo_board_name.txt --
linksys,e7350
-- End --
-- File fs/popen~fw_printenv_-n_bootimage_2_dev_null.txt --
1
-- End --
-- File fs/popen~fw_setenv_bootimage_2_2_dev_null_echo_.txt --
1
-- End --
-- Testcase --
let ar = require('advanced_reboot');
let api = ar["luci.advanced-reboot"];
let result = api.boot_partition.call({ args: { number: "2" } });
printf("error: %s\n", result.error);
printf("args: %J\n", result.args);
-- End --
-- Expect stdout --
error: ERR_SET_ENV
args: [ "bootimage", "2" ]
-- End --
|