Преглед изворни кода

Add info about testing new branches

Antony Messerli пре 9 година
родитељ
комит
f5d67dd84b
2 измењених фајлова са 7 додато и 2 уклоњено
  1. 4 0
      README.md
  2. 3 2
      src/utils.ipxe

+ 4 - 0
README.md

@@ -48,3 +48,7 @@ Full documentation is at ReadTheDocs:
 #### Feedback
 
 Feel free to open up an issue on github or contact me at antony@mes.ser.li
+
+#### Testing New Branches
+
+Under the Utilities menu on netboot.xyz, there's an option for "Test netboot.xyz branch".  If you've forked the code and have developed a new feature branch, you can use this option to chainload into that branch to test and validate the code.  All you need to do is specify your github user name and the name of your branch or abbreviated hash of the commit.

+ 3 - 2
src/utils.ipxe

@@ -41,10 +41,11 @@ goto utils_exit
 :testpr
 echo This will chainload into a testing branch of netboot.xyz.  You'll need to enter
 echo your Github User and the first part of the commit hash of the commit you want
-echo to test.  This assumes you are testing from a netboot.xyz repo.
+echo to test or the branch name.  This assumes you are testing from a netboot.xyz 
+echo repo.
 echo
 echo -n Specify Github User Name: ${} && read github_user
-echo -n Specify shortened commit hash of netboot.xyz to be tested ( i.e. 30b7ca ): ${} && read github_hash
+echo -n Specify branch name or shortened commit hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
 echo
 echo Attempting to chainload:
 chain --autofree https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe || goto error