This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
2018-09-19 14:39:00 +02:00
|
|
|
package openwrt
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestUciAdd(t *testing.T) {
|
|
|
|
|
|
|
|
// Return 0 run !
|
|
|
|
res := UciAdd("wireless", "test")
|
2018-09-19 15:22:51 +02:00
|
|
|
if res.ReturnCode != 0 {
|
|
|
|
t.Error(res.Stderr)
|
2018-09-19 14:39:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|