mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	GitHub test script updates (#9507)
* GitHub test script updates add --reject to apply so it will skip binary files since GitHub does not create diffs for them correctly Add new directories to the removal cleanup. Remove non-existant ones. * Cleaner way to apply skip png files explicitly. That way patches are still atomic.
This commit is contained in:
		| @@ -5,5 +5,5 @@ cd $LIBRENMS_DIR | ||||
|  | ||||
| case $1 in | ||||
|     ''|*[!0-9]*) echo "You must specify a PR number to apply a patch" ;; | ||||
|     *) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/${1}.diff | git apply -v ${2} ;; | ||||
|     *) curl -s https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/${1}.diff | git apply --exclude=*.png -v ${2} ;; | ||||
| esac | ||||
|   | ||||
| @@ -31,8 +31,8 @@ args = parser.parse_args() | ||||
|  | ||||
| if args.discard: | ||||
|     if confirm("Are you sure you want to delete all modified and untracked files?"): | ||||
|         dirs = ["app/", "contrib/", "doc/", "html/", "includes/", "lib/", "LibreNMS/", | ||||
|         "licenses/", "mibs/", "misc/", "scripts/", "sql-schema/", "tests/"] | ||||
|         dirs = ["app/", "bootstrap/", "contrib/", "databases/", "doc/", "html/", "includes/", "LibreNMS/", | ||||
|         "licenses/", "mibs/", "misc/", "resources/", "routes", "scripts/", "sql-schema/", "tests/"] | ||||
|  | ||||
|         call(["git", "reset", "-q"], cwd=librenms_dir) | ||||
|         call(["git", "checkout", "."], cwd=librenms_dir) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user