http://defect.opensolaris.org/bz/show_bug.cgi?id=8446

           Summary: Enable/Disable a profile which has an internal error
                    should fail.
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
 Status Whiteboard: nwam1-build:2009-04-23
          Severity: major
          Priority: P3
         Component: CLI
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: lizhong.li at sun.com
         QAContact: nwam-dev at opensolaris.org


I created an enm profile myenm1 which has the invalid 'start' 'stop'
properties, the 'nwamadm enable/disable myenm1' executed successfully, but it
should fail.

earthscience:exp# nwamcfg list enm myenm1
ENM:myenm1
        start           "/var/tmp/mytest"
        stop            "/var/tmp/mytest"
        activation-mode manual
        enabled         false
earthscience:exp# ls /var/tmp/mytest
/var/tmp/mytest: No such file or directory

earthscience:exp# nwamadm enable myenm1
Enabling enm 'myenm1'
Apr 27 15:15:48 earthscience nwamd[102774]: 22: nwamd_enm_handle_enable_event:
execution of '/var/tmp/mytest' failed for ENM myenm1
earthscience:exp# echo $?
0

earthscience:exp# nwamadm disable myenm1
Disabling enm 'myenm1'
earthscience:exp# echo $?
0

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to