addgroup.lua (a42d6f76018e4ed8324e319ab48aac904bda437c) | addgroup.lua (504981357aa36365784458cfe8d9e23097bfac7b) |
---|---|
1#!/usr/libexec/flua 2 3local n = require("nuage") | 1#!/usr/libexec/flua 2 3local n = require("nuage") |
4 |
|
4if n.addgroup() then 5 n.err("addgroup should not accept empty value") 6end 7if n.addgroup("plop") then 8 n.err("addgroup should not accept empty value") 9end 10local gr = {} 11gr.name = "impossible_groupname" 12local res = n.addgroup(gr) 13if not res then 14 n.err("valid addgroup should return a path") 15end | 5if n.addgroup() then 6 n.err("addgroup should not accept empty value") 7end 8if n.addgroup("plop") then 9 n.err("addgroup should not accept empty value") 10end 11local gr = {} 12gr.name = "impossible_groupname" 13local res = n.addgroup(gr) 14if not res then 15 n.err("valid addgroup should return a path") 16end |