summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-advanced-reboot/tests/01_error_handling/04_partition_not_found
blob: d7781ff0a6342b2798149014c4b81719d14d1c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Test boot_partition with a valid numeric partition that does not exist on the device.

-- File fs/open~_tmp_sysinfo_board_name.txt --
linksys,e7350
-- End --

-- File fs/popen~fw_printenv_-n_bootimage_2_dev_null.txt --
1
-- End --

-- Testcase --
let ar = require('advanced_reboot');
let api = ar["luci.advanced-reboot"];
let result = api.boot_partition.call({ args: { number: "9" } });
printf("%J\n", result);
-- End --

-- Expect stdout --
{ "error": "PARTITION_NOT_FOUND", "args": [ "9" ] }
-- End --