blob: 70ff4c2721c59c855848ebb08bca3ccee3e9c33b (
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
27
28
|
Test boot_partition with missing or non-numeric number argument.
-- File fs/open~_tmp_sysinfo_board_name.txt --
linksys,e7350
-- End --
-- Testcase --
let ar = require('advanced_reboot');
let api = ar["luci.advanced-reboot"];
// No args at all
let r1 = api.boot_partition.call();
printf("no_args: %s\n", r1.error);
// Empty object
let r2 = api.boot_partition.call({ args: {} });
printf("empty: %s\n", r2.error);
// Non-numeric
let r3 = api.boot_partition.call({ args: { number: "abc" } });
printf("abc: %s\n", r3.error);
-- End --
-- Expect stdout --
no_args: INVALID_ARG
empty: INVALID_ARG
abc: INVALID_ARG
-- End --
|