- return self.test_plc.run_in_guest("sfi.py -d %s add %s"%
- (self.sfi_path(),self.addpersonfile()))==0
+ sfi_add_options = self.sfa_slice_spec['person_options']
+ command="sfi -d %s add"%(self.sfi_path())
+ for (opt,val) in sfi_add_options.items():
+ command += " %s %s"%(opt,val)
+ # handle key separately because of embedded whitespace
+ # hack - the user's pubkey is avail from his hrn
+ hrn=sfi_add_options['-x']
+ command += " -k %s/%s.pub"%(self.sfi_path(),hrn)
+ return self.test_plc.run_in_guest(command)==0