@ -4,6 +4,7 @@
# === This file is part of Calamares - <http://github.com/calamares> ===
# === This file is part of Calamares - <http://github.com/calamares> ===
#
#
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
# Copyright 2017, Adriaan de Groot <groot@kde.org>
#
#
# Calamares is free software: you can redistribute it and/or modify
# Calamares is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
@ -81,7 +82,9 @@ def main():
print ( " Only Python jobs can be tested. " )
print ( " Only Python jobs can be tested. " )
return 1
return 1
libcalamares . globalstorage = libcalamares . GlobalStorage ( )
# Parameter None creates a new, empty GlobalStorage
libcalamares . globalstorage = libcalamares . GlobalStorage ( None )
libcalamares . globalstorage . insert ( " testing " , True )
# if a file for simulating globalStorage contents is provided, load it
# if a file for simulating globalStorage contents is provided, load it
if args . globalstorage_yaml :
if args . globalstorage_yaml :